question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] x-enum-varnames in parameters not work ---- dart

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
godaangelcommented, May 24, 2021

I have solved my problem by this, thank u @kuhnroyal

0reactions
kuhnroyalcommented, May 21, 2021

@godaangel Any news on this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found