Closed
Description
If a property of a definition references another defined type via a reference, the description for the property is not written to the schema.
This means that specificity in a document for a description for a type of a property is not serialized to the schema.
This is because if the Reference
property is non-null, it is the only property serialized.
When the schema is serialized, allowable metadata such as the description should still be serialized when a reference is present.
Expected
"definitions": {
"Foo": {
"description": "A foo",
"type": "object",
"properties": {
"bar": {
"$ref": "#/definitions/Bar",
"description": "A custom Bar"
}
}
},
"Bar": {
"description": "A bar",
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
}
Actual
"definitions": {
"Foo": {
"description": "A foo",
"type": "object",
"properties": {
"bar": {
"$ref": "#/definitions/Bar"
}
}
},
"Bar": {
"description": "A bar",
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
}
Metadata
Metadata
Assignees
Labels
No labels