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
Whenever ref_key is encountered a custom function is called.
Inside the function I convert ref_key to an actual reference and resolve it.( Something like { $ref: "#/main/property" }.
Currently I am doing the resolution on my own.
I noticed that spectral resolves references and throws error in case of invalid reference. So, is there a way for me to converted the ref_key to actual reference and call spectral for resolving reference in my custom function.
I found i could call built in function for truthy but didn't find a way to resolve references.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi have a document,
Whenever
ref_key
is encountered a custom function is called.Inside the function I convert
ref_key
to an actual reference and resolve it.( Something like { $ref: "#/main/property" }.Currently I am doing the resolution on my own.
I noticed that spectral resolves references and throws error in case of invalid reference. So, is there a way for me to converted the ref_key to actual reference and call spectral for resolving reference in my custom function.
I found i could call built in function for truthy but didn't find a way to resolve references.
Beta Was this translation helpful? Give feedback.
All reactions