Replies: 3 comments 1 reply
-
Hello @sbalay, Welcome - the anchor idea was something I started reflexion but I may be biased - I'm open for discussion . In my personal opinion, Json-Pointer as id seems the wise choice :
Let's take some examples to illustrate my thinking : Object propertiesGiven this JSON Schema : {
"$id": "https://example.com/schemas/address",
"type": "object",
"properties": {
"street_address":
{ "type": "string" },
"city": { "type": "string" },
"state": { "type": "string" }
},
"required": ["street_address", "city", "state"]
} I would like to target the Array PropertiesGiven this JSON Schema : {
"type": "array",
"prefixItems": [
{ "type": "number" },
{ "type": "string" },
{ "enum": ["Street", "Avenue", "Boulevard"] },
{ "enum": ["NW", "NE", "SW", "SE"] }
]
} I would like to target the 3rd entry of the array so JSON Pointer is Example of escaped attributeGiven this JSON Schema : {
"$id": "https://example.com/schemas/address",
"type": "object",
"properties": {
"street_address":
{ "type": "string" },
"city": { "type": "string" },
"country/state": { "type": "string" }
},
"required": ["street_address", "city", "state"]
} I would like to target the I'm curious on how Docusaurus Feel free to share your thoughts ;) |
Beta Was this translation helpful? Give feedback.
-
@sbalay #234 should solve your issue with fields - could you give a look with the preview playground before I release the 1.10.0 version ? |
Beta Was this translation helpful? Give feedback.
-
Hey @jy95, thanks for the hard work! I played around with the deploy preview and it looks really good! |
Beta Was this translation helpful? Give feedback.
-
It would be nice if we could use
#
in the url to link directly to specific fields in the json schema representationBeta Was this translation helpful? Give feedback.
All reactions