@CompileStatic class BaseDocument extends java.lang.Object
The document a description starts from, which describes the API as a whole and what the application does not map itself.
| Constructor and description |
|---|
BaseDocument() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static void |
merge(io.swagger.v3.oas.models.OpenAPI base, io.swagger.v3.oas.models.OpenAPI openApi, io.swagger.v3.oas.models.Paths paths, io.swagger.v3.oas.models.Components components, java.util.function.Predicate<java.lang.String> selectsPath)Starts a document from the base document: its information, servers, security and external documentation are used as they are, and its tags, extensions, components, and the paths the document selects, are kept beside what is derived. |
|
static io.swagger.v3.oas.models.OpenAPI |
read(java.lang.String location, ResourceLoader resourceLoader, boolean openapi31)Reads a YAML or JSON document. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Starts a document from the base document: its information, servers, security and external documentation are used as they are, and its tags, extensions, components, and the paths the document selects, are kept beside what is derived.
Reads a YAML or JSON document.
null where none is configured