Skip to content
New issue

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

Suddenly int parameters are interpreted as string parameters (from at least 2.5.6+1) #415

Closed
RoarGronmo opened this issue May 28, 2022 · 6 comments
Assignees
Labels
bug Something isn't working Triage needed

Comments

@RoarGronmo
Copy link

RoarGronmo commented May 28, 2022

Describe the bug
When upgrading from (at lowest 2.3.10 to 2.5.6+1) some int paramaters are interpreted as string paramters.

To Reproduce
mwork_api.swagger.txt

Expected behavior
Expecting the generator to generate the files as before, since there where no significant version rise.
This wasn't so in 2.3.10

Problem
Pinpoint the two required paramters which should be in int32
image

Here theese two variables are interpreted as strings...
image

Library version used:
My yaml files:
pubspec.yaml.txt
build.yaml.txt

Library version used 2.5.6+1

Additional context
Add any other context about the problem here.

@RoarGronmo RoarGronmo added bug Something isn't working Triage needed labels May 28, 2022
@RoarGronmo
Copy link
Author

The problem seems to be introduced in 2.5.5, in 2.5.4 it works OK.

@Vovanella95
Copy link
Collaborator

Hi @RoarGronmo , I will check it. Thanks for raising!

@RoarGronmo
Copy link
Author

TYI: The issue is still there in 2.5.7

@Vovanella95
Copy link
Collaborator

Vovanella95 commented Jun 1, 2022

@RoarGronmo hello! Yes I know :) Will handle your issue this or next week! Your issue is first one in my priority list

Vovanella95 pushed a commit that referenced this issue Jun 2, 2022
@Vovanella95
Copy link
Collaborator

Hi @RoarGronmo please check swagger_dart_code_generator: ^2.5.8. Should work fine

@RoarGronmo
Copy link
Author

Confirming that 2.5.8 works as expected !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Triage needed
Projects
None yet
Development

No branches or pull requests

3 participants