-
-
Notifications
You must be signed in to change notification settings - Fork 242
Closed
Description
Steps to reproduce
With a jsonSchema like:
{
components: {
schemas: {
Pet: {
type: "string"
}
}
},
$ref: "#/components/schemas/Pet"
};
the $ref is correctly resolved, but is kept a "$ref: "#" in the result.
Example
+ expected - actual ... Lines skipped
{
- '$ref': '#',
components: {
...
type: 'string'
}
What is expected?
I expect that the $ref is omitted from the result:
{
components: {
schemas: {
Pet: {
type: "string"
}
}
},
type: "string"
}
Other info
- node version: v10.20.1
- json-schema-ref-parser version: 9.0.1
fredmaggiowski, Danielecina and Liooo
Metadata
Metadata
Assignees
Labels
No labels