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

(maint) Remove nil values from metadata before generating JSON #127

Merged
merged 1 commit into from
Jul 3, 2017

Conversation

rodjek
Copy link
Contributor

@rodjek rodjek commented Jul 3, 2017

A new release of metadata-json-lint was pushed out a couple of days ago that included voxpupuli/metadata-json-lint#68 which causes the data types for the metadata values to get validated. This is causing our acceptance tests to fail because we include nil values (translated to null in JSON) in our generated metadata.json.

This change compacts the metadata hash to remove those keys with nil values (optional metadata elements like issues_url) before generating the JSON structure.

@rodjek
Copy link
Contributor Author

rodjek commented Jul 3, 2017

Not waiting to merge this one due to the US long weekend and this fixes the broken builds on master.

@rodjek rodjek merged commit e3b4a14 into master Jul 3, 2017
@rodjek rodjek deleted the compact_metadata branch July 3, 2017 01:54
@DavidS DavidS added the bug label Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants