You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a subschema has been defined that does not have an explicit or implicit type "object", the viewer shows only the description for that subschema when it is clicked in the "Root definitions" tree. It would be nice if the viewer was able to display subschemas of type "enum", "string", etc.
E.g. for this schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "id",
"title": "Orso",
"type": "object",
"properties": {},
"definitions": {
"Polarization": {
"title": "Polarization",
"description": "The first symbol indicates the magnetisation direction of the incident beam (or o for unknown polarization).\n\nThe second symbol indicates the direction of the scattered beam (or o for unknown polarization).",
"enum": [
"unpolarized",
"po",
"mo",
"op",
"om",
"mm",
"mp",
"pm",
"pp"
]
}
}
}
The view when clicking on "Polarization" is this:
But I'd like it to be this:
The text was updated successfully, but these errors were encountered:
I pasted in a simple else block to the SchemaExplorerDetails function that generates the second version, but I don't know if it's a reasonable solution:
If a subschema has been defined that does not have an explicit or implicit type "object", the viewer shows only the description for that subschema when it is clicked in the "Root definitions" tree. It would be nice if the viewer was able to display subschemas of type "enum", "string", etc.
E.g. for this schema:
The view when clicking on "Polarization" is this:
![image](https://user-images.githubusercontent.com/686570/173687255-fe57738c-440f-4226-b977-a36d388505a5.png)
But I'd like it to be this:
![image](https://user-images.githubusercontent.com/686570/173687337-de08f487-47e0-439c-89ce-5d132f46d56f.png)
The text was updated successfully, but these errors were encountered: