Skip to content

Conversation

Mattias-Sehlstedt
Copy link
Contributor

Upgrades swagger-core from 2.2.36 to 2.2.38.

Note that the schema type overriding for the 3.1 specification resolver seems to have had some minor regression, as it now seems to require the 3.1 types to be set rather than the old 3.0 type. This has previously been highlighted as issues by consumers, so might be necessary to investigate if a fallback is possible.

This should also close swagger-api/swagger-core#4822, since the duplicated oneOf issue seems to have been resolved.

Instant timestamp;

@Schema(name = "value", type = "number", format = "double", description = "The data value", required = true, example = "19.0")
@Schema(name = "value", types = "number", format = "double", description = "The data value", required = true, example = "19.0")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If type = "number" is provided, then the schema type is incorrectly assigned as string.
If the type is omitted, it is resolved to number.
With types = "number", it is also still number.
With some other type, e.g., types = "object", then the type is resolved to "type" : [ "number", "object" ]

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.

Duplicate Schema References in oneOf - OAS 3.1

1 participant