[BUG] x-enum-varnames in parameters not work ---- dart
See original GitHub issueI have write like this
parameters:
- name: operation_type
in: query
required: true
schema:
type: integer
enum:
- 0
- 1
x-enum-varnames:
- Read
- ReadAll
but in dart it is also int type, not enum type.
I use openapi-generator generate -i openapi.yaml -g dart-dio -o .api_tmp
this to generate
and my openapi-generator
version is 5.1.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (8 by maintainers)
Top Results From Across the Web
Fixing common type problems - Dart
While the List type has an add() method, Iterable does not. Fix: Specify type arguments or fix downstream errors. When a generic class...
Read more >json - Question : Dart/Flutter passing parameters not working
Use this.name in the constructor instead. Like so: class User { String? name; User({this.name}); }. Without this. , the name from the ...
Read more >Positional parameters being placed after named ... - GitHub
I expected DartPad to accept positional parameters being placed in any order with named parameters but this is not the case.
Read more >Dart Parameters - Sarunw
Learn three ways to declare parameters for a Dart function. ... The name is for reference in the function, not at the call...
Read more >auto_route - Dart API docs - Pub.dev
assuing this is the root widget of your App class App extends StatelessWidget { // make sure you don't initiate your router //...
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 FreeTop 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
Top GitHub Comments
I have solved my problem by this, thank u @kuhnroyal
@godaangel Any news on this?