Skip to content

colesturza/quarkus-microprofile-openapi-bug-reproducer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quarkus-microprofile-openapi-bug-reproducer

Steps to Reproduce Bug

  1. Run ./mvnw compile quarkus:dev
  2. Go to http://localhost:8080/q/swagger-ui.
  3. Observe that the response types for both endpoints do not contain an example, and when hitting the schema button, Swagger is not able to process the OpenAPI specification. Invalid Specification
  4. Go to http://localhost:8080/q/openapi and download the specification.
  5. The OpenAPI specification should contain the two following responses.
# ... (Omitted for brevity)
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: array
                anyOf:
                - $ref: '#/components/schemas/SubClassADto'
                - $ref: '#/components/schemas/SubClassBDto'
                - $ref: '#/components/schemas/SubClassCDto'
# ... (Omitted for brevity)
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: array
                oneOf:
                - $ref: '#/components/schemas/SubClassADto'
                - $ref: '#/components/schemas/SubClassBDto'
                - $ref: '#/components/schemas/SubClassCDto'
# ... (Omitted for brevity)

Expected Value

# ... (Omitted for brevity)
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  anyOf:
                  - $ref: '#/components/schemas/SubClassADto'
                  - $ref: '#/components/schemas/SubClassBDto'
                  - $ref: '#/components/schemas/SubClassCDto'
# ... (Omitted for brevity)
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  oneOf:
                  - $ref: '#/components/schemas/SubClassADto'
                  - $ref: '#/components/schemas/SubClassBDto'
                  - $ref: '#/components/schemas/SubClassCDto'
# ... (Omitted for brevity)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages