swagger-parser
swagger-parser copied to clipboard
Swagger Spec to Java POJOs
SWOS-634 - ApiParser does not support reference path that contains numbers see: https://smartbear.atlassian.net/browse/SWOS-634
## Parser version: 2.1.2 ## Spec: ``` openapi: "3.0.0" info: version: 1.0.0 title: 0001_allOffProps paths: /sample_resource: post: operationId: createResOne requestBody: content: application/json: schema: $ref: "#/components/schemas/create_res_one" responses: '201': description: Ok content:...
## High priority swagger-parser version: 2.1.1 parsing a 3.1.0 spec schema puts single type into types array When parsing the below spec, the first allof schema in AllofWithTheLastEmptySchema is defined...
swagger-parser version: 2.1.1 spec: defined below below Issue: parsing of component schema MinLengthValidationWithADecimal omitsthe existing minLength from the parser result Here is the pasted parser result for that schema: ```...
##### Description The validation does not check whether a required property is actually part of the definition: A message like `Schema properties specified as 'required' must be defined` is not...
#### Description With any parser settings and model in yaml format, when model contains property "**on**" parser read property name "**true**" instead of "**on**". Problem caused by wrong DeserializationUtils.CustomResolver.addImplicitResolvers() in...
Fixes #1796 Make sure the `required` field don't get lost when it is having an `allOf` in Swagger and you want to convert it to OpenAPI
Swagger-parser version: 2.1.2 **Sample spec** ```yaml swagger: "2.0" info: title: composed model conversion test version: 1.0.0 paths: /composed: get: operationId: composed responses: "200": description: OK schema: $ref: "#/definitions/ComposedModel" definitions: BaseModel:...
`OpenAPIV3Parser` currently only takes extensions into account when the `OpenAPI read` methods are used. It should also consider extensions in e.g. the `SwaggerParseResult readContents` method.
It fixes only one of the failing cases of the provided tests though. I didn't consider cases where the default value is defined on the enum and expected to be...