We use Schema Composition to define relationships for our models. In the API Responses tab the Data Schema has a nice and clear overview of all properties (the composition is flattened), but in the documentation tab when <DataSchema id="xxxxx" /> is used, the preview is not flattened.
Are there any attributes which can change this preview? I found the JSON Viewer Package package, and see there is a lot of customizability. Maybe some of these attributes can be forwarded?
Other than the preview being flattened; I’d love to see the attribute viewMode="read|write|standalone" to choose between hiding or showing the readOnly properties. This can be useful when documenting the request or response of an endpoint.
In documentation the data schema looks like the first image (schema composition shows as objects), but on the response page it looks like the second image (flattened). I want DataSchema in the documentation to look the same as the preview in the responses tab
In documentation the data schema looks like the first image (schema composition shows as objects), but on the response page it looks like the second image (flattened). I want DataSchema in the documentation to look the same as the preview in the responses tab