We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The issue is that an OpenAPI definition containing something like:
enum_integer: type: integer format: int32 enum: - 1 - 2
...will result in code that looks like:
public var enumInteger: Int?
That example is from the unit tests:
CreateAPI/Tests/Support/Specs/edgecases.yaml
Lines 1097 to 1102 in 0069e8b
I would prefer/expect to see something more like:
public enum EnumInteger: Int, Codable { case _1 = 1 case _2 = 2 }
I'm assuming this was a choice, probably? But maybe there could be a flag for it or something?
The text was updated successfully, but these errors were encountered:
No doubt the negative number complicates things. 😂
Sorry, something went wrong.
No branches or pull requests
The issue is that an OpenAPI definition containing something like:
...will result in code that looks like:
That example is from the unit tests:
CreateAPI/Tests/Support/Specs/edgecases.yaml
Lines 1097 to 1102 in 0069e8b
I would prefer/expect to see something more like:
I'm assuming this was a choice, probably? But maybe there could be a flag for it or something?
The text was updated successfully, but these errors were encountered: