Mastercard / mastercard-api-client-tutorial

Generating and Configuring a Mastercard API Client
https://mstr.cd/2AWz6pm
MIT License
58 stars 57 forks source link

generated model AuthenticationMethods have wrong type for id #37

Open latompa opened 1 year ago

latompa commented 1 year ago

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?