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

lint: validate concept .meta/config.json file #299

Closed
wants to merge 1 commit into from

Conversation

ErikSchierboom
Copy link
Member

This PR implements the rules for the .meta/config.json file of a concept:

  • The file must be valid JSON
  • The JSON root must be an object
  • The "blurb" key is required
  • The "blurb" value must be a non-blank string¹ with length <= 350
  • The "authors" key is required
  • The "authors" value must be an array
  • The "authors" values must be non-blank strings
  • The "contributors" key is optional
  • The "contributors" value must be an array
  • The "contributors" values must be non-blank strings

It doesn't yet implement the uniqueness rules, which will be added once #295 is merged.

This commit implements the rules for the .meta/config.json file of a concept:
- The file must be valid JSON
- The JSON root must be an object
- The "blurb" key is required
- The "blurb" value must be a non-blank string¹ with length <= 350
- The "authors" key is required
- The "authors" value must be an array
- The "authors" values must be non-blank strings
- The "contributors" key is optional
- The "contributors" value must be an array
- The "contributors" values must be non-blank strings
@ErikSchierboom ErikSchierboom marked this pull request as draft April 30, 2021 13:21
@ErikSchierboom ErikSchierboom requested a review from ee7 April 30, 2021 13:21
@ee7
Copy link
Member

ee7 commented Apr 30, 2021

Duplicate of #261 :)

@ErikSchierboom
Copy link
Member Author

Doh! :D

@ee7 ee7 deleted the lint-concept-config-json branch May 1, 2021 09:12
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.

2 participants