You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In other words, it would seem there is no way to obtain a flat array property with POJO elements, using @SchemaProperty. It's either a plain object schema or a nested array, no in-between.
The text was updated successfully, but these errors were encountered:
Update: I found a workaround: apparently @SchemaProperty(name = "create", array = @ArraySchema(schema = @Schema(ref = "#/components/schemas/MyCustomDto"))) works just fine.
The problem only appears when using @Schema.implementation instead.
@SchemaProperty(name = "create", array = @ArraySchema(schema = @Schema(implementation = String.class)))
renders as:
@SchemaProperty(name = "create", schema = @Schema(implementation = MyCustomDto.class))
renders as:
All of the above to be expected.
However,
@SchemaProperty(name = "create", array = @ArraySchema(schema = @Schema(implementation = MyCustomDto.class)))
renders as:
In other words, it would seem there is no way to obtain a flat array property with POJO elements, using
@SchemaProperty
. It's either a plain object schema or a nested array, no in-between.The text was updated successfully, but these errors were encountered: