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

[PROPOSAL] Use JSON Schema #30

Open
adrienaury opened this issue May 20, 2021 · 0 comments
Open

[PROPOSAL] Use JSON Schema #30

adrienaury opened this issue May 20, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@adrienaury
Copy link
Member

adrienaury commented May 20, 2021

Add a new flag --schema

pimo --schema file://schema.json

With regard to the JSON Schema Specification, PIMO can

  • enforce that every JSON Line in the input stream respect the schema (log an error and fail, or log a warning and skip if --skip-line-on-error)
  • re-order fields in the output stream, in the same order they are defined in the schema

Some Go librairies that implement the JSON Schema specification : https://json-schema.org/implementations.html#validator-go

@adrienaury adrienaury added the enhancement New feature or request label May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant