-
Notifications
You must be signed in to change notification settings - Fork 43
Incorrect decoding of type: null
from Yaml
#364
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I've been looking at this a little more and have narrowed the problem down to |
So this is actually related to a Yams bug that has been fixed as of version Interestingly, the Yams fix also only works for Swift releases later than 5.4, it appears. A bit surprising. That means that I can't bump the locked version of Yams for the project prior to OpenAPIKit 4.0.0. Here's a little more background: apple/swift-openapi-generator#286 (comment). In that comment, you can focus on the second paragraph where I explain and link to a Yams bug that describes the behavior you've described in the OP for this issue. |
I see you came to the same conclusion as I was typing up my response! |
Your PR looks good to me if you rebase it against |
Rebase: Done. |
This test exists:
However, adding a similar test for Yaml highlights the bug:
In short,
nil
is returned, whenJSONType.null
is expected.The text was updated successfully, but these errors were encountered: