openapi-json-schema-generator

OpenAPI JSON Schema Generator allows auto-generation of API client libraries with a focus on JSON schema given an OpenAPI document

APACHE-2.0 License

Stars
117
Committers
2.4K

Bot releases are hidden (Show)

openapi-json-schema-generator - 4.2.1 Latest Release

Published by spacether 6 months ago

openapi-json-schema-generator - 4.2.0

Published by spacether 6 months ago

This version marks the release of the stable java generator

  • sending and receiving text/plain and application/json to endpoints is supported

What's Changed

Full Changelog: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/compare/4.1.3...4.2.0

openapi-json-schema-generator - 4.1.2

Published by spacether 7 months ago

What's Changed

Full Changelog: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/compare/4.1.1...4.1.2

openapi-json-schema-generator - 4.1.1

Published by spacether 8 months ago

What's Changed

Full Changelog: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/compare/4.1.0...4.1.1

openapi-json-schema-generator - 4.1.0

Published by spacether 9 months ago

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 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

Full Changelog: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/compare/4.0.0...4.1.0

openapi-json-schema-generator - 4.0.0

Published by spacether 10 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/compare/3.3.1...4.0.0

openapi-json-schema-generator - 3.3.1

Published by spacether 12 months ago

openapi-json-schema-generator - 3.3.0

Published by spacether 12 months ago

openapi-json-schema-generator - 3.2.1

Published by spacether 12 months ago

openapi-json-schema-generator - 3.2.0

Published by spacether almost 1 year ago

openapi-json-schema-generator - 3.1.1

Published by spacether about 1 year ago

openapi-json-schema-generator - 3.1.0

Published by spacether about 1 year ago

Adds preliminary openapi v3.1.0 document processing

Over 50% of the 3.1.0 new json schema keyword features have been implemented
Preliminary 3.1.0 spec support includes these json schema keywords:

  1. type (array of types supported in addition to one non-array value)
  2. const: only string values are working because of bugs in swagger parser
  3. contains
  4. dependentRequired
  5. dependentSchemas
  6. maxContains
  7. minContains
  8. patternProperties
  9. prefixItems
  10. propertyNames
  11. unevaluatedItems
  12. unevaluatedProperties

What's Changed

Full Changelog: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/compare/3.0.0...3.1.0

openapi-json-schema-generator - 3.0.0

Published by spacether about 1 year ago

Big Changes

  • Schema classes have been changed from being nested to sequential
  • Schema classes now only store json schema info
  • python code now passes mypy checks, means that this generator can be ported into compiled languages
  • Schema payload output classes are now generated for type: object and type: array payloads
  • Overloads added for SomeSchema.validate with type constraints on inputs and outputs
  • Enums of type string/integer/boolean now have typing.Literal type hints for inputs and outputs
  • python version changed to >= 3.8
  • java version changed to 11
  • java project simplified via refactoring
  • Read about the v3 changes in the python client v3 migration guide here

What's Changed

Full Changelog: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/compare/2.0.3...3.0.0

openapi-json-schema-generator - 2.0.3

Published by spacether over 1 year ago

openapi-json-schema-generator - 2.0.2

Published by spacether over 1 year ago

openapi-json-schema-generator - 2.0.1

Published by spacether over 1 year ago

openapi-json-schema-generator - 2.0.0

Published by spacether over 1 year ago

What's Changed

Improvements

  • one documentation file generated for each endpoint
  • ranged responses added 2XX 3XX etc
  • deserialization of redirection responses added 300-399 http status codes
  • code is reused more, python classes are generated and imported for #/components/x
    • headers
    • parameters
    • request_bodies
    • responses
    • schemas
    • security_schemes
  • package structure has been modernized to use src/the_package and pyproject.toml installation
  • configuration info has been refactored to separate concerns and to allow more robust configuration of server and security info
  • Java classes that store openapi document info have been refactored, making them shorter and easier to maintain
  • Python methods and class names updated
    • is_true_oapg -> is_true_
    • is_false_oapg -> is_false_
    • is_none_oapg -> is_none_
    • as_date_oapg -> as_date_
    • as_datetime_oapg -> as_datetime_
    • as_decimal_oapg -> as_decimal_
    • as_uuid_oapg -> as_uuid_
    • as_float_oapg -> as_float_
    • as_int_oapg -> as_int_
    • get_item_oapg -> get_item_
    • from_openapi_data_oapg -> from_openapi_data_
    • from_openapi_data_oapg -> from_openapi_data_
    • _verify_typed_dict_inputs_oapg -> _verify_typed_dict_inputs
    • _configuration -> configuration_
    • _arg -> arg_
    • _args -> args_
    • MetaOapg -> Schema_
    • JsonSchema -> OpenApiSchema

To read more about the details of those changes, and why they were done, read the
2.0.0 Migration guide:

Full Changelog: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/compare/1.0.4...2.0.0

openapi-json-schema-generator - 1.0.4

Published by spacether over 1 year ago

openapi-json-schema-generator - 1.0.3

Published by spacether over 1 year ago

What's Changed

Full Changelog: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator/compare/1.0.2...1.0.3

Badges
Extracted from project README
CI Tests Apache 2.0 License
Related Projects