|
5 | 5 |
|
6 | 6 | package io.openapiparser; |
7 | 7 |
|
| 8 | +import io.openapiparser.support.Experimental; |
8 | 9 | import io.openapiprocessor.interfaces.Writer; |
9 | 10 | import io.openapiprocessor.jsonschema.schema.SchemaStore; |
10 | 11 | import io.openapiprocessor.jsonschema.validator.Validator; |
@@ -42,25 +43,32 @@ enum Version { V30, V31 } |
42 | 43 | <T> T getModel (Class<T> api); |
43 | 44 |
|
44 | 45 | /** |
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. |
46 | 48 | * |
47 | 49 | * @return a raw bundled copy of the OpenAPI document. |
48 | 50 | */ |
| 51 | + @Experimental |
49 | 52 | Map<String, Object> bundle(); |
50 | 53 |
|
51 | 54 | /** |
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. |
54 | 57 | * |
55 | 58 | * @param writer the target writer |
56 | 59 | */ |
| 60 | + @Experimental |
57 | 61 | void write(Writer writer) throws IOException; |
58 | 62 |
|
59 | 63 | /** |
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 | + * |
61 | 67 | * @param overlay the overlay document |
| 68 | + * @return a raw copy of the OpenAPI document with the applied overlay. |
62 | 69 | */ |
63 | | - void apply(OverlayResult overlay); |
| 70 | + @Experimental |
| 71 | + Map<String, Object> apply(OverlayResult overlay); |
64 | 72 |
|
65 | 73 | /** |
66 | 74 | * run schema validation. Retrieve the collection of validation messages from |
|
0 commit comments