Skip to content

Update MapOpenApiPrimitiveTypeToSimpleType to handle integers and numbers without a format #1657

Closed

Description

@glen-84

Is your feature request related to a problem? Please describe.

OpenApiTypeMapper.MapOpenApiPrimitiveTypeToSimpleType doesn't handle integers or numbers without a format.

Describe the solution you'd like

Add:

("integer", null, false)
("integer", null, true)
("number", null, false)
("number", null, true)

I'm not sure what types these should default to. Perhaps int + double.

Describe alternatives you've considered

copy/paste/update

Additional context

n/a

Activity

  1. MaggieKimani1 commented on May 9, 2024

    @MaggieKimani1
    Contributor

    Glen (@glen-84), just to be clear is this request for nullable types only or all data types?

  2. glen-84 commented on May 9, 2024

    @glen-84
    Author

    The 3rd element of the tuple is the nullability, so it would be for both nullable and non-nullable integers and numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions