-
-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Description
It seems like when i have a sufficiently complex schema ref-re-mapping breaks.
I am getting the error (in VSCode, but the error is in the schema):
$ref '/properties/views/items/oneOf/5/allOf/1/properties/gatewayActions/properties/affirmativeAction/oneOf/1/properties/metaData' in 'http://localhost:8000/merged-schema.json' can not be resolved.
this points to
"gatewayActions": {
"type": "object",
"properties": {
"binding": {
"type": "string"
},
"affirmativeAction": {
"$ref": "#/properties/views/items/oneOf/5/allOf/1/properties/gatewayActions/properties/prevAction"
},
"negativeAction": {
"$ref": "#/properties/views/items/oneOf/5/allOf/1/properties/gatewayActions/properties/prevAction"
},
"prevAction": {
"title": "Action Choice",
"oneOf": [
{
"title": "Action Asset",
"type": "object",
"required": [
"asset"
],
"properties": {
"asset": {
"$ref": "#/properties/views/items/oneOf/1/allOf/1/properties/fields/definitions/asset/oneOf/8"
}
}
},
{
"title": "Action Object",
"description": "(DEPRECATED): Use an action asset instead.",
"type": "object",
"not": {
"required": [
"asset"
]
},
"properties": {
"id": {
"type": "string"
},
"label": {
"$ref": "#/properties/views/items/oneOf/5/allOf/1/properties/coveredForms/properties/label"
},
"metaData": {
"id": "metaData",
"type": "object",
"additionalProperties": true,
"properties": {
"role": {
"type": "string",
"description": "A role assigned that gives it greater semantic meaning."
}
}
},
"value": {
"type": "string"
},
"applicability": {
"type": "string"
},
"accessibility": {
"type": "string"
}
}
}
]
},
"actions": {
"maximum": 0
}
}
}
Instead of a object, I get reference to a sibling. I believe that all references to:
/properties/views/items/oneOf/5/allOf/1/properties/gatewayActions/properties/affirmativeAction/oneOf/1/properties/metaData
should be
/properties/views/items/oneOf/5/allOf/1/properties/gatewayActions/properties/prevAction/oneOf/1/properties/metaData
Full Schema, Code, and Error:
https://paste.ee/p/weaNo
Metadata
Metadata
Assignees
Labels
No labels