Closed JaredAAT closed 6 months ago
Encountered the same issue, looks like top-level refs aren't supported very well, see https://github.com/APIDevTools/json-schema-ref-parser/issues/201, https://github.com/APIDevTools/json-schema-ref-parser/issues/259, https://github.com/APIDevTools/json-schema-ref-parser/issues/48.
I don't know enough of the technical terms sorry, but i'm not sure if this is the correct behaviour. I have a schema that contains a
$ref
to a definition:and when using this code:
it returns me a schema like
I would expect the schema to be resolved like:
Though i suspect i'm asking too much here... Is there a different tool or library I should use to get my expected result?