You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a schema has a $ref and other fields (an extendedRef), then the other fields will be kept. However, if those other fields themselves have $refs, they will not be resolved.
Context
I'm trying to use this library to dereference a schema that uses refs like this, and it means I can't use this library on this schema, at least not without recursing through the object and resolving references myself when the library misses them.
Current Behavior
Some refs are not resolved. If the schema is dereferenced, those missing refs will cause the library to crash.
Expected Behavior
refs should always be resolved, even deep in the schema.
Possible Workaround/Solution
Not sure how to workaround this. Write my own recursion into the schema to resolve the refs when the library misses them?
I poked around in the code, and the cause (and the fix) is likely to be somewhere near a call to the function $Ref.isExtendedRef.
If a schema has a $ref and other fields (an
extendedRef
), then the other fields will be kept. However, if those other fields themselves have $refs, they will not be resolved.Context
I'm trying to use this library to dereference a schema that uses refs like this, and it means I can't use this library on this schema, at least not without recursing through the object and resolving references myself when the library misses them.
Current Behavior
Some refs are not resolved. If the schema is dereferenced, those missing refs will cause the library to crash.
Expected Behavior
refs should always be resolved, even deep in the schema.
Possible Workaround/Solution
Not sure how to workaround this. Write my own recursion into the schema to resolve the refs when the library misses them?
I poked around in the code, and the cause (and the fix) is likely to be somewhere near a call to the function
$Ref.isExtendedRef
.Steps to Reproduce
code snippet
Environment
Version 9.2.5
The text was updated successfully, but these errors were encountered: