jimblackler / jsonschemafriend

A JSON Schema loader and validator, delivered as a Java library.
Apache License 2.0
49 stars 23 forks source link

Is it possible to use openapi 3.x as schema #84

Open mpet opened 2 months ago

mpet commented 2 months ago

Hi,

I have been looking for validator to validate our payloads vs an openapi 3.x schema. It has has really been hard to find a validator in java that supports openapi 3.x :-) Does this library support it?

br,

//mike

big-andy-coates commented 2 months ago

Looking at the 3.1 schema, it looks to be using the 2020-12 draft of JSON schema, which this library supports.

So yes, it should work

mpet commented 2 months ago

can I validate a payload using the schema?