Closed michaelgwelch closed 2 years ago
It looks like you're having an issue with NSwag, suggest filing an issue at https://github.com/RicoSuter/NSwag
For anyone that might stumble upon this issue in the future, I've open an issue with NSWag https://github.com/RicoSuter/NSwag/issues/4004
Is there an existing issue for this?
Describe the bug
The
openapi2client
client throws an exception when you use therequired
key on a header object with a boolean valueExpected Behavior
Per the spec:
And the parameter defines the
required
key as such:Steps To Reproduce
The repo https://github.com/michaelgwelch/petstore2 demonstrates a header named
CUSTOM
withrequired
set totrue
. If you attempt to build you will get an exception.If you remove the
required
key then it should build fine. This indicates it's therequired
key causing the issue. The error message below seems to be clipping the full path.Exceptions (if any)
.NET Version
6.0.202
Anything else?