Skip to content

generated model AuthenticationMethods have wrong type for id #37

@latompa

Description

@latompa

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions