-
-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
The original schema:
{
"title": "Request",
"type": "object",
"additionalProperties": true,
"properties": {
"requestBody": {
"type": "object",
"additionalProperties": false,
"properties": {
"active": {
"description": "Active style.",
"type": "object",
"additionalProperties": false,
"properties": {
"foo": {
"type": "string"
}
}
},
"default": {
"description": "Default style.",
"type": "object",
"additionalProperties": false,
"properties": {
"foo": {
"type": "string"
}
}
}
}
}
},
"required": [
"requestBody"
]
}
The decycled schema:
{
"title": "Request",
"type": "object",
"additionalProperties": true,
"properties": {
"requestBody": {
"type": "object",
"additionalProperties": false,
"properties": {
"active": {
"description": "Active style.",
"type": "object",
"additionalProperties": false,
"properties": {
"foo": {
"type": "string"
}
}
},
"default": {
"description": "Default style.",
"type": "object",
"additionalProperties": false,
"properties": {
"$ref": "#/properties/requestBody/properties/active/properties"
}
}
}
}
},
"required": [
"requestBody"
]
}
I would imagine the correct result should be something like:
{
"title": "Request",
"type": "object",
"additionalProperties": true,
"properties": {
"requestBody": {
"type": "object",
"additionalProperties": false,
"properties": {
"active": {
"type": "object",
"additionalProperties": false,
"properties": {
"foo": {
"type": "string"
}
},
"description": "Style definition."
},
"default": {
"$ref": "#/properties/requestBody/properties/active"
}
}
}
},
"required": [
"requestBody"
]
}
Jamie5
Metadata
Metadata
Assignees
Labels
No labels