OpenAPI 3.0
OpenAPI 3.0 was released in mid 2017 and was supported until the end of 2017. The specification is not backward compatible to the previous Swagger 2.0 and the tool chain around this specification format is still lacking. We have to build our own openapi-parser in order to support it in light-rest-4j framework.
There are some middleware handlers designed for OpenAPI 3.0 specification.
OpenAPI 3.0 Specific Handlers
- openapi-meta loads the openapi.yaml or openapi.json from the config folder during server start and caches the specification per endpoint.
- openapi-security verifies the JWT token signature and expiration as well as scopes if they are defined in the specification.
- openapi-validator validates the request headers, path parameters, query parameters and body against the specification.
- openapi-display displays openapi specification for the service API, including specification content display and specification swagger ui display.