Skip to content

Commit 32bdeed

Browse files
committed
document parser option
1 parent 2af3300 commit 32bdeed

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

docs/modules/ROOT/pages/gradle.adoc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ openapiProcessor {
3535
apiPath "$projectDir/src/api/openapi.yaml"
3636
targetDir "$projectDir/build/openapi"
3737
mapping "$projectDir/mapping.yaml"
38-
showWarnings true
38+
parser "INTERNAL"
3939
}
4040
4141
}
@@ -60,8 +60,14 @@ to yaml file. See xref:processor/configuration.adoc[Configuration] for a descrip
6060
yaml. This replaces the `typeMappings` option.
6161

6262
* `showWarnings`: (**optional**) `true` to show warnings from the open api parser or `false`
63-
(default) to show no warnings.
64-
63+
(default) to show no warnings (this option has currently no effect).
64+
65+
* `parser`: (**optional**), sets the openapi parser used to read the OpenAPI description. Available values are `SWAGGER` (default), `OPENAPI4J` or `INTERNAL`.
66+
** `SWAGGER`: link:{swagger-parser}:[Swagger OpenAPI parser, window="_blank"], supports *OpenAPI 3.0.x*
67+
** `OPENAPI4J`: link:{openapi4j}[openapi4j OpenAPI parser, window="_blank"], supports *OpenAPI 3.0.x*. It provides better validation than `SWAGGER`, unfortunately it is no longer maintained.
68+
** `INTERNAL`: link:{openapi-parser}:[internal OpenAPI parser, window="_blank"], supports *OpenAPI 3.0.x* & *OpenAPI 3.1.0*.
69+
*** the 3.0.x parser provides JSON schema validation.
70+
*** the 3.1.0 parser is *experimental* and has no validation at the moment.
6571

6672
== running processor-spring
6773

docs/modules/ROOT/partials/links.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
:swagger-parser: https://github.com/swagger-api/swagger-parser
2929
:openapi4j: https://github.com/openapi4j/openapi4j
30+
:openapi-parser: https://github.com/openapi-processor/openapi-parser
3031

3132
:springboot: https://spring.io/projects/spring-boot
3233
:license: http://www.apache.org/licenses/LICENSE-2.0.txt

0 commit comments

Comments
 (0)