-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Describe the bug
Dereferencing does not work when allOf is used at the same level as properties. i.e. in the below example dereferencing will not work.
{
"type": ["object", "null"],
"properties": {
"termDetails": {
"$ref": "#/definitions/def2"
}
},
"allOf": [],
"title": "def1"
}
To Reproduce
Find the attahced codesandbox link. The Codesandbox
The resultant schema with allOf & without allOf is being printed in the console.
Expected behavior
Dereferencing should work irrespective of whether alllOf is used or not used.
Result difference, notice how in the first half where I used allOf , dereferencing did not work

Desktop (please complete the following information):
- OS: ios
- Browser: Chrome
- Version 131.0.6778.206
Additional context
I have tried the same with other dereferencing libraries like dereference-json-schema, the dereferencing works irrespective of whether allOf is used or not.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
