ajevans99 / swift-json-schema

Generate JSON Schema documents from Swift
MIT License
12 stars 5 forks source link

Validation #29

Closed ajevans99 closed 3 weeks ago

ajevans99 commented 2 months ago

Description

This PR contains major changes. It replaces the existing base Schema type with a new version that takes JSONValue to create the underlying schema structure. This means removing the previous initializers for schemas. Going forward, builders will be the best way to generate the Schema's directly.

This change enables support for more keywords and creates a more modular architecture. Each keyword is not defined by a separate struct, that also handles its own validation logic.

With the underlying changes, many of the builder APIs have changed.

See README and DocC with more information on changes.

Future work

Type of Change

Additional Notes

Add any other context or screenshots about the pull request here.


Note: You can add the auto-format label to this pull request to enable automatic Swift formatting.