Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong schema generation of Object[] for OpenAPI 3.1 #4774

Open
ML-Marco opened this issue Nov 7, 2024 · 0 comments
Open

Wrong schema generation of Object[] for OpenAPI 3.1 #4774

ML-Marco opened this issue Nov 7, 2024 · 0 comments

Comments

@ML-Marco
Copy link

ML-Marco commented Nov 7, 2024

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": {

            }
          }
@ML-Marco ML-Marco changed the title Wrong schema generation for Object[] for OpenAPI 3.1 Wrong schema generation of Object[] for OpenAPI 3.1 Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant