Task
Implement the mapping from Java field types to OpenAPI schema types.
Parent story: #12
Parent epic: #18
Details
Map these Java types to OpenAPI types:
String → type: string
int/Integer, long/Long → type: integer
double/Double, float/Float, BigDecimal → type: number
boolean/Boolean → type: boolean
LocalDate → type: string, format: date
LocalDateTime/Instant → type: string, format: date-time
List<T> → type: array, items: <T>
Set<T> → type: array, items: <T>, uniqueItems: true
Map<K,V> → type: object, additionalProperties: <V>
- Nested DTOs →
$ref: '#/components/schemas/NestedDtoName'
Acceptance Criteria
Task
Implement the mapping from Java field types to OpenAPI schema types.
Parent story: #12
Parent epic: #18
Details
Map these Java types to OpenAPI types:
String→type: stringint/Integer,long/Long→type: integerdouble/Double,float/Float,BigDecimal→type: numberboolean/Boolean→type: booleanLocalDate→type: string, format: dateLocalDateTime/Instant→type: string, format: date-timeList<T>→type: array, items: <T>Set<T>→type: array, items: <T>, uniqueItems: trueMap<K,V>→type: object, additionalProperties: <V>$ref: '#/components/schemas/NestedDtoName'Acceptance Criteria
$ref