Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update open api json schema pojos #364

Merged
merged 3 commits into from
Apr 9, 2020
Merged

Conversation

mtdowling
Copy link
Member

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mtdowling mtdowling force-pushed the update-open-api-json-schema-pojos branch from 1d9b034 to 64aad7d Compare April 8, 2020 23:39
@mtdowling mtdowling requested a review from kstich April 8, 2020 23:39
The OpenAPI plugin has now been refactored to use strongly-typed POJOs
rather than the more dynamic Node-based configuration. This is possible
because of the NodeMapper. Now OpenAPI's config extends from JSON
Schema's config. All configuration prefixes were removed from OpenAPI
keys, but the plugin will handle loading the deprecated form of
"openapi." when parsing configuration settings.

Additional configuration settings used to configure conversion plugins
for either OpenAPI or JSON Schema are contained in the "extensions"
property. This property can be access from the JsonSchemaConfig object
and deserialized into a desired POJO using `getExtensions(Class type)`.
This allows typed access to additional configuration settings along with
validation. Subsequent access to the same type is cached.
@mtdowling mtdowling force-pushed the update-open-api-json-schema-pojos branch from 64aad7d to cbf8f2e Compare April 9, 2020 18:43
@mtdowling mtdowling requested a review from kstich April 9, 2020 22:27
@mtdowling mtdowling merged commit 19952b8 into 0.10 Apr 9, 2020
@mtdowling mtdowling deleted the update-open-api-json-schema-pojos branch April 11, 2020 20:17
@kstich kstich mentioned this pull request Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants