Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After deference $ref items still exist in final schema and they're not circular #128

Closed
jc21 opened this issue May 28, 2019 · 1 comment
Closed

Comments

@jc21
Copy link

jc21 commented May 28, 2019

Here's my separated schema.

When I dereference index.json I still see $ref: items for created_on and modified_on fields, and this is super strange considering that the adjacent fields (eg name, meta) are correctly dereferenced and have the same reference locations.

Here's the output: schema-output.json.txt

I'm expecting to see the same dereference behaviour of the adjacent fields.

Node v11.7.0
json-schema-ref-parser v6.1.0

@jc21
Copy link
Author

jc21 commented May 28, 2019

Nevermind. I'm an idiot. Was using "$ref:": instead of "$ref":

@jc21 jc21 closed this as completed May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant