-
Notifications
You must be signed in to change notification settings - Fork 42
Closed
Description
The two bar properties should be considered compatible, because the types are effectively identical (one just flows through an extra $ref):
"FooBarString": {
"type":"object",
"properties": {
"bar": {
"type":"string"
}
},
"allOf": [
{
"$ref": "#/definitions/FooBarStringRef"
}
]
},
"FooBarStringRef": {
"type":"object",
"properties": {
"bar": {
"$ref":"#/definitions/MyString"
}
}
},
"MyString": {
"type": "string"
}
Instead they generate an error:
incompatible properties : bar
definitions/FooBarString/properties/bar
at file:///mnt/vss/_work/1/s/src/test/specs/compatible-properties-ref.json#L13:8
definitions/FooBarStringRef/properties/bar
at file:///mnt/vss/_work/1/s/src/test/specs/compatible-properties-ref.json#L26:8
mikekistler
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🎊 Closed
Status
🎊 Closed