public enum OpenAPIVersion extends Enum<OpenAPIVersion>
Modifier and Type | Method and Description |
---|---|
static OpenAPIVersion |
fromContract(JsonObject contract) |
Future<SchemaRepository> |
getRepository(Vertx vertx,
String baseUri) |
Future<JsonObject> |
resolve(Vertx vertx,
SchemaRepository repo,
JsonObject contract) |
Future<Void> |
validateAdditionalContractFile(Vertx vertx,
SchemaRepository repo,
JsonObject file)
Validates additional contract files against the openapi schema.
|
Future<OutputUnit> |
validateContract(Vertx vertx,
SchemaRepository repo,
JsonObject contract) |
static OpenAPIVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenAPIVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenAPIVersion V3_0
public static final OpenAPIVersion V3_1
public static OpenAPIVersion[] values()
for (OpenAPIVersion c : OpenAPIVersion.values()) System.out.println(c);
public static OpenAPIVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static OpenAPIVersion fromContract(JsonObject contract)
public Future<OutputUnit> validateContract(Vertx vertx, SchemaRepository repo, JsonObject contract)
public Future<Void> validateAdditionalContractFile(Vertx vertx, SchemaRepository repo, JsonObject file)
vertx
- The related Vert.x instance.repo
- The SchemaRepository to do the validations with.file
- The additional json contract to validate.public Future<JsonObject> resolve(Vertx vertx, SchemaRepository repo, JsonObject contract)
public Future<SchemaRepository> getRepository(Vertx vertx, String baseUri)
Copyright © 2024 Eclipse. All rights reserved.