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

generated model AuthenticationMethods have wrong type for id #37

Open
latompa opened this issue Sep 21, 2022 · 0 comments
Open

generated model AuthenticationMethods have wrong type for id #37

latompa opened this issue Sep 21, 2022 · 0 comments

Comments

@latompa
Copy link

latompa commented Sep 21, 2022

In this generated model
Acme.App.MastercardApi.Client/Model/AuthenticationMethods.cs

the id is of type int, but the openapi spec says string

image

this causes an error when the API client tries de-serialize a response with a large ID, essentially ending up with null Data:

{
    "StatusCode": 200,
    "Headers": { ... },
    "Data": null,
    "ErrorText": "JSON integer 3123456789 is too large or small for an Int32. Path 'authenticationMethods[0].id', line 7, position 22."
}

was this client generated by an older openapi spec perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant