Forum Discussion

atumius's avatar
atumius
New Member
8 months ago

How to generate Map<UUID, Integer> instead of Map<String, Integer>

On the project we are using codegen and field like

uuidToIntegerMap:
   type: string
   format: uuid
   additionalProperties:
      type: integer

creates field like Map<String, Integer>

Seems it's the only way, but maybe you can give some advices how to achive Map<UUID, Integer>

1 Reply

  • Hi atumius ,

     

    It looks like the format isn't applied to the inhertience (in Java at least).

     

    Could you create  a ticket on https://github.com/swagger-api/swagger-codegen/issues/new with the details of how you're using codegen (via the web, via cli, via maven, etc), what language/framework and anything else that might help recreate the issue - so that the devs can take a look at it.

     

    Hope that helps!