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

Missing array type when using @ArraySchema with OpenAPI 3.1 #68

Open
taylortails opened this issue Jun 6, 2024 · 0 comments
Open

Missing array type when using @ArraySchema with OpenAPI 3.1 #68

taylortails opened this issue Jun 6, 2024 · 0 comments

Comments

@taylortails
Copy link

If you run the example demo-spring-boot-3-webmvc

navigate to http://localhost:8081/v3/api-docs

you notice that:

    "/pet/findByTags": {
...
        "responses": {
...
          "200": {
...
              "application/json": {
                "schema": {
                  "type": "array", # <- this line is missing
                  "items": {
                    "$ref": "#/components/schemas/Pet"
                  }
                }

If you disable in application.yaml

springdoc:
  #api-docs:
    #version: openapi_3_1

the type isnt missing.

@taylortails taylortails changed the title Missing array type when using @ArraySchema using Open3.1 Missing array type when using @ArraySchema with OpenAPI 3.1 Jun 6, 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