Skip to content

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

Open
@taylortails

Description

@taylortails

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions