Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

validate mapping with json schema #62

Closed
hauner opened this issue Apr 27, 2021 · 2 comments
Closed

validate mapping with json schema #62

hauner opened this issue Apr 27, 2021 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@hauner
Copy link
Member

hauner commented Apr 27, 2021

avoid annoying failures caused by an error in the mapping.yaml by validating it with the json schema.

https://github.com/networknt/json-schema-validator looks good, it is using jackson and avoids having another json/yaml parser dependency.

@hauner
Copy link
Member Author

hauner commented Apr 27, 2021

.. this should also help to keep the schema up to date

@hauner hauner modified the milestones: next, 2021.4 Apr 28, 2021
@hauner hauner added the enhancement New feature or request label Apr 28, 2021
@hauner hauner closed this as completed in 8f5927d Apr 28, 2021
@hauner hauner reopened this May 5, 2021
@hauner
Copy link
Member Author

hauner commented May 5, 2021

it doesn't work as expected, the validator does not fully understand the schema (look like allOf does not work) and reports false errors.

IntelliJ doesn't complain and it validates a mapping, so the schema itself seems to be correct.

@hauner hauner closed this as completed May 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant