Enums with dots in their names cause an error
See original GitHub issueWhat are the steps to reproduce this issue?
- Make a swagger schema with an enum that contains a dot in the name
foo.bar
- Use it inside a definition
{
"web.foo": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"foo": {
"type": "string",
"enum": [
"high",
"medium",
"low"
]
}
}
}
}
What happens?
The generated code is wrong:
What were you expecting to happen?
The dot to be removed
What versions are you using?
Operating System: macOS Big Sur Package Version: 5.4.4
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Enum not accept item with dot('.') - MSDN - Microsoft
Hi. I want to create an enum that represented provider name for DbProviderFactories.GetFactory(providerName) in my function.
Read more >How can include a dot character in enum type name in ...
You're probably getting an error because you're trying to assign a value to the filterType member on a class called Filter , but...
Read more >Allow for shorter dot syntax to access enum values · Issue #357
If I write .north , then the compiler has to look for all enums that are available (say, any where the name of...
Read more >Enumerations - Scala 3 - EPFL
The valueOf method obtains an enum value by its name. The values method returns all enum values defined in an enumeration in an...
Read more >How To Use An Enum | C# Tutorial For Beginners - YouTube
In this C# tutorial I will teach about enums and structs which are a type of "mini objects" we can use in our...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you so much! Great job with this tool, been loving it!
I fixed the problem in the
5.4.6
normally