public class GeneratorContext extends Object
| Constructor and Description |
|---|
GeneratorContext(SchemaParser parser,
OpenAPIHolderImpl holder,
Operation operation) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPredicate(Function<RoutingContext,RequestPredicateResult> predicate) |
JsonObject |
fakeSchema(JsonObject schema) |
Operation |
getOperation() |
SchemaHolder |
getSchemaHolder(JsonObject originalSchema,
JsonObject fakeSchema,
JsonPointer schemaLocation) |
SchemaHolder |
getSchemaHolder(JsonObject originalSchema,
JsonPointer schemaLocation) |
JsonObject |
solveIfNeeded(JsonObject object) |
public GeneratorContext(SchemaParser parser, OpenAPIHolderImpl holder, Operation operation)
public JsonObject solveIfNeeded(JsonObject object)
public void addPredicate(Function<RoutingContext,RequestPredicateResult> predicate)
public Operation getOperation()
public SchemaHolder getSchemaHolder(JsonObject originalSchema, JsonObject fakeSchema, JsonPointer schemaLocation)
public SchemaHolder getSchemaHolder(JsonObject originalSchema, JsonPointer schemaLocation)
public JsonObject fakeSchema(JsonObject schema)
Copyright © 2021. All rights reserved.