openapi-processor / openapi-processor-core

moved into openapi-processor-base
Apache License 2.0
7 stars 5 forks source link

validate mapping with json schema #62

Closed hauner closed 3 years ago

hauner commented 3 years ago

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 commented 3 years ago

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

hauner commented 3 years ago

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.