Skip to content
This repository has been archived by the owner on Aug 5, 2021. It is now read-only.

Require repositoryURL field but allow null value #360

Open
katucker opened this issue Dec 8, 2017 · 1 comment
Open

Require repositoryURL field but allow null value #360

katucker opened this issue Dec 8, 2017 · 1 comment
Assignees

Comments

@katucker
Copy link

katucker commented Dec 8, 2017

The documentation for the repositoryURL field within the releases array of the code.json schema states the field is only required if the release is designated as Open Source. The JSON schema definition, however, specifies the field as required. As a result, the schema validator flags release entries with no repositoryURL field as invalid, regardless of the value of the corresponding usageType field.

I recommend modifying the documentation to state repositoryURL is required but can be assigned a null value if the corresponding release is not Open Source.

@DanielJDufour
Copy link
Contributor

Good point @katucker . We'll look into this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants