Skip to content

saschakr/open-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

open-api-example

clean and build the project and deploy the ear.

Expected outcome for /openapi would contains both example schemas

components:
  schemas:
    ExampleFromWAR:
      type: object
      properties:
        name:
          type: string
    ExampleFromJAR:
      type: object
      properties:
        name:
          type: string

When using a provided dependency in the WAR, the class ExampleFromJAR will not be shown.

    <dependency>
      <groupId>org.example</groupId>
      <artifactId>example-jar</artifactId>
      <version>1.0-SNAPSHOT</version>
      <!-- This may be the issue, using a provided dependency will not create the openapi docs correctly -->
      <scope>provided</scope>
    </dependency>

Will produce following schema-declaration

components:
  schemas:
    ExampleFromWAR:
      type: object
      properties:
        name:
          type: string

When removing line <scope>provided</scope> this works as expected.

About

Example for OpenAPI (issue) for Wildfly 22

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages