You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes this looks like a bug. The Array is enough to break the cycle, so we shouldn't need to box it again.
The way to fix this would be to first write a failing snippet test with this case (look for the tests with the word "recursive" in the name for inspiration), and then update the boxing logic.
@acecilia, would you consider contributing a fix here, with our guidance?
Description
👋 I am observing that the generator is boxing properties that do not need boxing
Reproduction
This OpenAPI spec:
Generates boxed code:
Package version(s)
Expected behavior
This swift code is valid and compiles:
So I would expect that the generated code does not have any boxing.
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0
Additional information
Originally raised in #70 (comment)
The text was updated successfully, but these errors were encountered: