Skip to content

Commit 399c113

Browse files
committed
improve documentation
1 parent f8a4c04 commit 399c113

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

openapi-parser/src/main/java/io/openapiparser/OpenApiResult.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
package io.openapiparser;
77

8+
import io.openapiparser.support.Experimental;
89
import io.openapiprocessor.interfaces.Writer;
910
import io.openapiprocessor.jsonschema.schema.SchemaStore;
1011
import io.openapiprocessor.jsonschema.validator.Validator;
@@ -42,25 +43,32 @@ enum Version { V30, V31 }
4243
<T> T getModel (Class<T> api);
4344

4445
/**
45-
* Experimental. Bundle the document. The bundled document has to be parsed to navigate its OpenAPI model.
46+
* Bundle the document, i.e. merge a multi-file document into a single file document. The bundled document has to
47+
* be parsed to navigate its OpenAPI model.
4648
*
4749
* @return a raw bundled copy of the OpenAPI document.
4850
*/
51+
@Experimental
4952
Map<String, Object> bundle();
5053

5154
/**
52-
* Experimental. Write the document. This will produce useful results only if the document is a single file
53-
* document. Bundling can be used to create a single file document.
55+
* Write the document. This will produce useful results only if the document is a single file document. Bundling
56+
* can be used to create a single file document.
5457
*
5558
* @param writer the target writer
5659
*/
60+
@Experimental
5761
void write(Writer writer) throws IOException;
5862

5963
/**
60-
* apply an OpenAPI overlay to the OpenAPI document.
64+
* Apply an OpenAPI overlay to the OpenAPI document. The result document has to be parse to navigate its OpenAPI
65+
* model.
66+
*
6167
* @param overlay the overlay document
68+
* @return a raw copy of the OpenAPI document with the applied overlay.
6269
*/
63-
void apply(OverlayResult overlay);
70+
@Experimental
71+
Map<String, Object> apply(OverlayResult overlay);
6472

6573
/**
6674
* run schema validation. Retrieve the collection of validation messages from

0 commit comments

Comments
 (0)