You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a Java 11 based link:{openapi}[OpenAPI] 3.0.x & 3.1 parser with validation and pluggable document reader & json/yaml converter.
18
+
a Java 11 based link:{openapi}[OpenAPI] 3.2, 3.1 & 3.0 parser with validation, bundling & overlay support and pluggable document reader & json/yaml converter.
18
19
19
-
* parse OpenAPI 3.0.x & 3.1
20
-
* validate OpenAPI 3.0.x & 3.1 (handles $ref's in the OpenAPI document)
20
+
* parse OpenAPI 3.2, 3.1 & 3.0
21
+
* validate OpenAPI 3.2, 3.1 & 3.0 (JSON schema validation, can follow $ref's in the OpenAPI document)
21
22
** JSON schema draft-4 validation of OpenAPI 3.0
22
-
** JSON schema draft-2020-12 validation of OpenAPI 3.1
23
-
* separate apis for OpenAPI 3.0 & 3.1
23
+
** JSON schema draft-2020-12 validation of OpenAPI 3.2, 3.1
* apply overlay to (bundled) OpenAPI document (experimental)
28
28
* minimal dependencies
29
29
* pluggable document reader
30
30
* pluggable json/yaml converter
@@ -38,7 +38,7 @@ the parser tries to provide a *user-friendly* api in the sense that it
38
38
* throws if *required* properties are not set
39
39
* it is *read only*
40
40
* it resolves `$ref` objects, i.e. $ref objects have a `getRefObject()`
41
-
* it is very close to the specification (OpenAPI 3.0 & 3.1)
41
+
* it is very close to the specification (OpenAPI 3.2, 3.1 & 3.0)
42
42
43
43
Drawback is, that with the current api it is not possible (for some properties) to detect if a property is set in the OpenAPI description or if it is not given.
44
44
@@ -80,83 +80,21 @@ For example the `required` property of a `parameter` has a `false` default value
80
80
81
81
=== yaml/json converter
82
82
83
-
the *parser* is internally using `Map<String, Object>` to represent the OpenAPI object tree to be independent of a specific yaml/json parser. It will work with any yaml/json parser that is able to convert an OpenAPI yaml or json to a `Map<String, Object>` object tree.
83
+
the *parser* is internally using `Map<String, Object>` to represent the OpenAPI object tree to be independent of a specific yaml/json parser. It will work with any yaml/json parser that is able to convert an OpenAPI YAML or JSON to a `Map<String, Object>` object tree.
84
84
85
85
link:{converter-jackson}[`io-jackson`] provides a default implementation that is based on jackson.
86
86
87
87
== usage
88
88
89
-
code example for parsing an OpenAPI yaml file and running the JSON Schema validation.
89
+
=== current api (since 2023.3)
90
90
91
-
=== 2023.3 api (current)
91
+
this removes the `Resolver` from the previous (i.e. 2023.2) setup at step 2.
92
92
93
-
this removes the `Resolver` from the previous (i.e 2023.2) setup at step 2.
93
+
The following link:{sample}[sample code] shows the usage of the current api.
0 commit comments