Skip to content

Commit 7eb8916

Browse files
authored
Merge pull request #16 from cjelger/issues/12-doc
Trivial - added some examples for the default plugin configuration an…
2 parents 54d8350 + 5e97e1f commit 7eb8916

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ To have Swagger generate the OpenAPI specifications as part of the build add in
3030
<resourcePackage>io.openapitools.swagger.example</resourcePackage>
3131
<resourcePackage>io.openapitools.swagger.example.alternate</resourcePackage>
3232
</resourcePackages>
33+
<outputDirectory>${basedir}/target/</outputDirectory>
34+
<outputFilename>swagger</outputFilename>
35+
<outputFormats>JSON,YAML</outputFormats>
36+
<prettyPrint>true</prettyPrint>
3337
</configuration>
3438
<executions>
3539
<execution>
@@ -79,6 +83,10 @@ Most general properties of the Swagger model is configurable using the swaggerCo
7983
<url>https://license</url>
8084
<name>MIT</name>
8185
</license>
86+
<extensions>
87+
<x-custom-field-1>my-custom-field-1</x-custom-field-1>
88+
<x-custom-field-2>my-custom-field-2</x-custom-field-2>
89+
</extensions>
8290
</info>
8391
<descriptionFile>src/test/resources/descriptions.md</descriptionFile>
8492
</swaggerConfig>

0 commit comments

Comments
 (0)