File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -73,13 +73,13 @@ A "bill of materials" POM for json-schema-validator dependencies.
73
73
74
74
link:{central-search}[image:{jackson-central-badge}[]]
75
75
76
- json/yaml `Reader` & `Converter` based on link:{jackson}[Jackson].
76
+ json/yaml `Reader`, `Writer` & `Converter` based on link:{jackson}[Jackson].
77
77
78
78
=== link:{converter-snakeyaml}[io-snakeyaml]
79
79
80
80
link:{central-search}[image:{snakeyaml-central-badge}[]]
81
81
82
- yaml `Reader` & `Converter` based on link:{snakeyaml}[snakeyaml].
82
+ yaml `Reader`, `Writer` & `Converter` based on link:{snakeyaml}[snakeyaml].
83
83
84
84
=== link:{io-interfaces}[io-interfaces]
85
85
Original file line number Diff line number Diff line change 1
1
:converter: https://github.com/openapi-processor/openapi-parser/blob/master/io-interfaces/src/main/java/io/openapiprocessor/interfaces/Converter.java
2
2
:reader: https://github.com/openapi-processor/openapi-parser/blob/master/io-interfaces/src/main/java/io/openapiprocessor/interfaces/Reader.java
3
+ :writer: https://github.com/openapi-processor/openapi-parser/blob/master/io-interfaces/src/main/java/io/openapiprocessor/interfaces/Writer.java
3
4
4
5
:support: https://github.com/openapi-processor/openapi-parser/tree/master/json-schema-validator/src/main/java/io/openapiprocessor/jsonschema/reader
5
6
:converter-jackson: https://github.com/openapi-processor/openapi-parser/tree/master/io-jackson
@@ -17,6 +18,12 @@ the link:{reader}[`Reader`] interface is used to read OpenAPI json/yaml document
17
18
18
19
InputStream read(URI uri) throws IOException;
19
20
21
+ == Reader
22
+
23
+ the link:{writer}[`Writer`] interface is used to write OpenAPI json/yaml documents:
24
+
25
+ void write(Object document) throws IOException;
26
+
20
27
== Converter
21
28
22
29
the link:{converter}[`Converter`] interface is used to convert a json/yaml document into a java `Object` tree. The tree structure should be a `Map<String, Object>`.
Original file line number Diff line number Diff line change 1
1
:openapi: https://www.openapis.org/
2
+ :overlay: https://spec.openapis.org/overlay/v1.0.0.html
2
3
:converter-jackson: https://github.com/openapi-processor/openapi-parser/tree/master/io-jackson
3
4
:converter-snakeyaml: https://github.com/openapi-processor/openapi-parser/tree/master/io-snakeyaml
4
5
@@ -9,7 +10,7 @@ It is usable, but has the following limitations at the moment:
9
10
* it does support most but not all OpenAPI object properties
10
11
* minimal documentation (just this README)
11
12
12
- source code gifts (i.e pull requests) are welcome :-)
13
+ source code gifts (i.e. pull requests) are welcome :-)
13
14
14
15
== openapi-parser & validator
15
16
@@ -21,6 +22,9 @@ a Java 11 based link:{openapi}[OpenAPI] 3.0.x & 3.1 parser with validation and p
21
22
** JSON schema draft-2020-12 validation of OpenAPI 3.1
22
23
* separate apis for OpenAPI 3.0 & 3.1
23
24
* easily get resolved $ref object
25
+ * bundle multi-file OpenAPI documents (experimental)
26
+ * write bundled single-file OpenAPI document (json or yaml) (experimental)
27
+ // * apply link:{overlay}[Overlays] (experimental)
24
28
* minimal dependencies
25
29
* pluggable document reader
26
30
* pluggable json/yaml converter
You can’t perform that action at this time.
0 commit comments