swagger-core
swagger-core copied to clipboard
Wrong schema generation of `Object[]` for OpenAPI 3.1
Schema generation for object array is broken in OpenAPI 3.1.
Create a class with an object array field and resolve the schema for it:
private Object[] objectArray;
Set a breakpoint here and inspect the schema before and after. After the call items of the ArraySchema has no more information (e.g. type = object).
The serialized schema looks like this:
"objectArray": {
"type": "array",
"items": {
}
}