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

Should return clone of default of schema, not default itself #4

Open
idjhuang opened this issue Jul 20, 2017 · 0 comments
Open

Should return clone of default of schema, not default itself #4

idjhuang opened this issue Jul 20, 2017 · 0 comments

Comments

@idjhuang
Copy link

If there is default in schema, json-schema-empty would return it directly, which will cause problem:
If default of schema is object, return directly by json-schema-empty and be updated later, then default of schema would be modified.
json-schema-empty should return clone of default of schema.

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