openapi-processor / openapi-processor-core

moved into openapi-processor-base
Apache License 2.0
7 stars 5 forks source link

Format mapping on primitive type not work #22

Closed schlagi123 closed 3 years ago

schlagi123 commented 3 years ago

I have the following typ:

UUID:
  type: string

and try to map it to a java UUID type:

map:
  types:
    - type: UUID => java.util.UUID

The result of the generated Interface is, that the UUID typ will generated in a String.

If I change the type of UUID to object, it works correctly. My read is, that mapping for primitive types not work.

hauner commented 3 years ago

I have a fix that accepts the above mapping :-)

A few notes (after the fix on the processor side):