Commits
Tarun Sukhani authored e85cf90f2a4
fix: honour @Content(array=@ArraySchema(...)) in OpenAPI annotation reader (PF-101) OpenApiAnnotationReader.toContent only consulted @Content.schema() and ignored @Content.array() entirely. Endpoints annotated with the array form — the standard OpenAPI pattern for list responses — ended up with an empty MediaType in the spec instead of an ArraySchema wrapping the declared items type. Add a fallback in toContent: when the singular @Schema is empty, read the @ArraySchema from @Content.array() and wrap the inner items schema in an ArraySchema. The inner schema flows through the same schemaFromAnnotation path used by the singular form, so $ref-to- component output stays identical. Singular @Schema wins on conflict — the array fallback only fires when the singular form is absent. Empty @Content with neither form continues to produce an empty MediaType (no regression). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>