This repository was archived by the owner on Dec 25, 2024. It is now read-only.
4.1.0
Java schema validation now supported for v3.1.0 openapi documents / json schema draft 2020-12
Java client schema validation now works on the majority of v3.1.0 json schema keyword flags, json schema draft 2020-12
Over 67% of the 3.1.0 new json schema keyword features have been implemented in Java
Support includes these new/updated json schema keywords:
- type (array of types supported in addition to one non-array value)
- const: only string values are working because of bugs in swagger parser
- contains
- dependentRequired
- dependentSchemas
- if
- then
- else
- maxContains
- minContains
- patternProperties
- prefixItems
- propertyNames
- unevaluatedItems
- unevaluatedProperties
Features are verified by integrating the json schema test suite into a v310 java client and running tests against the generated schemas
Those tests are passing in CI
What's Changed
- Update README.md by @spacether in #356
- Java generator, adds schema default + Servers by @spacether in #355
- Java adds openapi v3.1.0 client + const by @spacether in #357
- Removes model package references by @spacether in #358
- Java features updated by @spacether in #359
- Java, adds schema contains by @spacether in #360
- Java, adds min/maxContains by @spacether in #361
- Java adds propertyNames by @spacether in #362
- Java, adds dependentRequired by @spacether in #363
- Bump actions/cache from 3 to 4 by @dependabot in #364
- Java, adds dependentSchemas by @spacether in #365
- Java, adds pattern properties by @spacether in #366
- Java, adds prefixItems by @spacether in #368
- Java, adds if json schema keyword feature by @spacether in #369
- Java, refactoring to simplify schema validate by @spacether in #370
- Java, adds then + else keyword functionality by @spacether in #371
- Java, adds mising const info to schema docs by @spacether in #372
- Java, adds unevaluatedItems by @spacether in #373
- Java, adds unevaluatedProperties by @spacether in #374
- Version 4.1.0 release by @spacether in #375
Full Changelog: 4.0.0...4.1.0