Skip to content

Commit 4dd192c

Browse files
committed
clean up
1 parent 9d34ca9 commit 4dd192c

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

README.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,19 @@
2424

2525
It is usable, it is used as the internal openapi parser/validator by openapi-processor.
2626

27-
== openapi-parser & validator
27+
== openapi-parser and validator
2828

2929
a Java 11 based link:{openapi}[OpenAPI] 3.2, 3.1, 3.0 parser with validation and pluggable document reader & json/yaml converter.
3030

3131
* parse OpenAPI 3.2, 3.1 & 3.0
3232
* validate OpenAPI 3.2, 3.1 & 3.0 (JSON schema validation, can follow $ref's in the OpenAPI document)
33+
** JSON schema draft-4 validation of OpenAPI 3.0
34+
** JSON schema draft-2020-12 validation of OpenAPI 3.2, 3.1
3335
* separate apis for OpenAPI 3.2, 3.1 & 3.0
3436
* easily get resolved $ref object
35-
* bundle & write (single file) OpenAPI document
36-
* apply overlay to (bundled) OpenAPI document (experimental)
37+
* bundle and write (a single file) OpenAPI document
38+
* apply overlay to (a bundled) OpenAPI document (experimental)
39+
** requires `com.jayway.jsonpath:json-path:2.10.0` or newer
3740
* minimal dependencies
3841
* pluggable document reader
3942
* pluggable json/yaml converter

openapi-parser/README.adoc

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
**work in progress**
88

9-
It is usable, but has the following limitations at the moment:
9+
It is usable but has the following limitations at the moment:
1010

1111
* it does support most but not all OpenAPI object properties
1212
* minimal documentation (just this README)
1313
14-
source code gifts (i.e. pull requests) are welcome :-)
14+
source code gifts (i.e., pull requests) are welcome :-)
1515

16-
== openapi-parser & validator
16+
== openapi-parser and validator
1717

1818
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.
1919

@@ -23,8 +23,9 @@ a Java 11 based link:{openapi}[OpenAPI] 3.2, 3.1 & 3.0 parser with validation, b
2323
** JSON schema draft-2020-12 validation of OpenAPI 3.2, 3.1
2424
* separate apis for OpenAPI 3.2, 3.1 & 3.0
2525
* easily get resolved $ref object
26-
* bundle & write (single file) OpenAPI document
27-
* apply overlay to (bundled) OpenAPI document (experimental)
26+
* bundle and write (a single file) OpenAPI document
27+
* apply overlay to (a bundled) OpenAPI document (experimental)
28+
** requires `com.jayway.jsonpath:json-path:2.10.0` or newer
2829
* minimal dependencies
2930
* pluggable document reader
3031
* pluggable json/yaml converter
@@ -36,11 +37,11 @@ the parser tries to provide a *user-friendly* api in the sense that it
3637

3738
* minimizes *null* values where possible
3839
* throws if *required* properties are not set
39-
* it is *read only*
40-
* it resolves `$ref` objects, i.e. $ref objects have a `getRefObject()`
40+
* it is *read-only*
41+
* it resolves `$ref` objects, i.e., $ref objects have a `getRefObject()`
4142
* it is very close to the specification (OpenAPI 3.2, 3.1 & 3.0)
4243

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+
The 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.
4445

4546
=== raw api
4647

@@ -73,22 +74,22 @@ or to create a new api `model.v30r.OpenApi` with a `@Nullable` signature
7374

7475
Minimizing null values means that
7576

76-
- for a missing/optional array properties it will return an empty collection
77-
- for other missing/optional properties it will return the default value if any is specified by the OpenAPI specification
77+
- for a missing/optional array property, it will return an empty collection
78+
- for other missing/optional properties, it will return the default value if any is specified by the OpenAPI specification
7879

79-
For example the `required` property of a `parameter` has a `false` default value and the api will return false in case `required` is not explicitly set in the OpenAPI description.
80+
For example, the `required` property of a `parameter` has a `false` default value and the api will return false in case `required` is not explicitly set in the OpenAPI description.
8081

8182
=== yaml/json converter
8283

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+
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.
8485

85-
link:{converter-jackson}[`io-jackson`] provides a default implementation that is based on jackson.
86+
link:{converter-jackson}[`io-jackson`] provides a default implementation based on jackson.
8687

8788
== usage
8889

8990
=== current api (since 2023.3)
9091

91-
this removes the `Resolver` from the previous (i.e. 2023.2) setup at step 2.
92+
this removes the `Resolver` from the previous (i.e., 2023.2) setup at step 2.
9293

9394
The following link:{sample}[sample code] shows the usage of the current api.
9495

0 commit comments

Comments
 (0)