public static enum OpenAPIGenerator.Format extends Enum<OpenAPIGenerator.Format>
| Modifier and Type | Method and Description |
|---|---|
String |
extension()
File extension.
|
abstract String |
toString(OpenAPIGenerator tool,
io.swagger.v3.oas.models.OpenAPI result)
Convert an
OpenAPI model to the current format. |
static OpenAPIGenerator.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenAPIGenerator.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenAPIGenerator.Format JSON
public static final OpenAPIGenerator.Format YAML
public static OpenAPIGenerator.Format[] values()
for (OpenAPIGenerator.Format c : OpenAPIGenerator.Format.values()) System.out.println(c);
public static OpenAPIGenerator.Format 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 null@Nonnull public abstract String toString(@Nonnull OpenAPIGenerator tool, @Nonnull io.swagger.v3.oas.models.OpenAPI result)
OpenAPI model to the current format.tool - Generator.result - Model.Copyright © 2020. All rights reserved.