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

Fix the scoping of JSON files #207

Merged
merged 1 commit into from
May 19, 2018

Conversation

theofidry
Copy link
Member

The JSON files should be decode with assoc set to true. Otherwise encoding it again may change the schema as if assoc is set to false, both [] and {} will be decoded as an empty array so
encoding it again may change an empty object into an empty array which may screw up a JSON schema validation.

@theofidry theofidry force-pushed the bugfix/fix-scoping-of-json-files branch 4 times, most recently from 8226ee5 to 17e3a33 Compare May 19, 2018 09:00
The JSON files should be decode with `assoc` set to true. Otherwise encoding it again may change the
schema as if `assoc` is set to false, both `[]` and `{}` will be decoded as an empty array so
encoding it again may change an empty object into an empty array which may screw up a JSON schema
validation.
@theofidry theofidry force-pushed the bugfix/fix-scoping-of-json-files branch from 17e3a33 to ba9ca20 Compare May 19, 2018 09:00
@theofidry theofidry merged commit c0384b6 into humbug:master May 19, 2018
@theofidry theofidry deleted the bugfix/fix-scoping-of-json-files branch May 19, 2018 09:00
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

Successfully merging this pull request may close these issues.

1 participant