Skip to content

[REQ][rust] Map uint32 format to native u32 #22911

@ticosax

Description

@ticosax

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

I would like openapi-generator to support for native u32 (and probably other unsigned types) for the rust generator

Describe the solution you'd like

For given openapi spec

my_u32_number:
  type: integer
  format: uint32
  maximum: 4294967295
  minimum: 0

I would like the generated code in rust to map the type as u32 instead of i32

Describe alternatives you've considered

Tried with other openapi generators

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions