public class AMFAPIModelFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AMF_VIOLATION_LEVEL |
| Constructor and Description |
|---|
AMFAPIModelFactory() |
AMFAPIModelFactory(List<String> dialectUrls) |
| Modifier and Type | Method and Description |
|---|---|
AMFAPIModel |
build(Path apiSpecPath,
boolean skipValidations)
Builds an API model from an API spec file.
|
AMFAPIModel |
build(String apiSpec,
boolean skipValidations)
Builds an API model from a string containing an API spec.
|
public static final String AMF_VIOLATION_LEVEL
public AMFAPIModel build(Path apiSpecPath, boolean skipValidations) throws ModelGenerationException
apiSpecPath - the input spec fileskipValidations - whether to run AMF validationsModelGenerationExceptionpublic AMFAPIModel build(String apiSpec, boolean skipValidations) throws ModelGenerationException
apiSpec - the string with an API specskipValidations - whether to run AMF validationsModelGenerationExceptionCopyright © 2023. All rights reserved.