-
Describe the bug To Reproduce docs\static\schemas\device\deviceSchema.json {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the device"
},
"image": {
"type": "string",
"description": "Path to the image asset corresponding to the device"
},
"position": {
"$ref": "../array/tuples.json"
}
}
} and docs\static\schemas\array\tuples.json {
"type": "array",
"description": "Represent a street address such as ['1600','Pennsylvania','Avenue','NW']",
"items": false,
"prefixItems": [
{ "type": "number", "description": "The address number" },
{ "type": "string", "description": "The name of the street" },
{
"enum": ["Street", "Avenue", "Boulevard"],
"description": "The type of street"
},
{
"enum": ["NW", "NE", "SW", "SE"],
"description": "The city quadrant of the address"
}
]
} and other tests where the referenced JSON file is in the same directory using path Expected behavior Desktop (please complete the following information):
Additional context |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @Seym0n , check the docs - I wrote an example long time ago which works and handle such case : https://jy95.github.io/docusaurus-json-schema-plugin/docs/demo-viewer/refs/localFile ;) |
Beta Was this translation helpful? Give feedback.
I checked this out before, but now I noticed I missed that resolverOptions was relevant to set up. I thought it was supported out-of-the box. Ended up copying the files from here https://github.com/jy95/docusaurus-json-schema-plugin/tree/main/testsite/src/components/shared-libs
Thank you!