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

Added proper groups schema validation #99

Merged
merged 2 commits into from
Jul 4, 2017
Merged

Conversation

SebastianZ
Copy link
Contributor

Added a detailed groups validation to the JSON schema, split it out to a separate file and fixed/updated the groups within the data accordingly.

@@ -12,12 +12,53 @@
}
}
},
"stringList": {
"groupList": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be "$ref": "definitions.json#/groupList"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out! This got actually redundant, because we have the data in definitions.json. So I just removed this item in a2f2373.

Sebastian

@lahmatiy
Copy link
Contributor

lahmatiy commented Jun 30, 2017

It's awesome! Would be cool to add other common enums to definitions.json

@SebastianZ
Copy link
Contributor Author

It's awesome! Would be cool to add other enums to definitions.json

Yes, that's the goal. This change is just the first step.

Sebastian

Copy link
Member

@Elchi3 Elchi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very cool and a great outcome of working together in person!

I will open an issue to do the same for other enums (appliesTo etc). We also need to update the docs, but I'll mention that in the follow-up issue, too.

@Elchi3 Elchi3 merged commit 8a4e1f7 into master Jul 4, 2017
@Elchi3 Elchi3 deleted the groups-schema-validation branch July 4, 2017 14:08
@Elchi3 Elchi3 mentioned this pull request Jul 4, 2017
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants