Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
It might be this is a feature, and I just haven't seen the change documentation for it.
For integer properties in OpenAPI 3.0 documents, the schema has gained string
and a pattern
. For example:
age: {
+ pattern: ^-?(?:0|[1-9]\d*)$,
type: [
null,
- integer
+ integer,
+ string
],
description: The age of the dog, if known.,
format: int32
}
Expected Behavior
If this isn't intentional, then the string
typeand
pattern` should not be emitted.
Steps To Reproduce
- Clone martincostello/openapi-extensions@e660bb4
- Run
dotnet test
from the root of the repository
Exceptions (if any)
No response
.NET Version
10.0.100-preview.2.25164.34
Anything else?
No response