Class OpenAPIComparatorOptions
java.lang.Object
org.brapi.schematools.core.openapi.comparator.options.OpenAPIComparatorOptions
- All Implemented Interfaces:
Options,Validatable
Options for the
OpenAPIComparator.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic OpenAPIComparatorOptionsload()Load the default optionsstatic OpenAPIComparatorOptionsload(InputStream inputStream) Load the options from an option input stream in YAML or JSON.static OpenAPIComparatorOptionsLoad the options from an option file in YAML or Json.override(OpenAPIComparatorOptions overrideOptions) Overrides the values in this Options Object from the provided Options Object if they are non-nullvalidate()Checks if the Validatable object is valid, return a list of errors if it is not valid
-
Constructor Details
-
OpenAPIComparatorOptions
public OpenAPIComparatorOptions()
-
-
Method Details
-
load
Load the default options- Returns:
- The default options
-
load
Load the options from an option file in YAML or Json. The options file may have missing (defined) values, in these cases the default values are loaded. Seeload()- Parameters:
optionsFile- The path to the options file in YAML or Json.- Returns:
- The options loaded from the YAML or Json file.
- Throws:
IOException- if the option file cannot be found or is incorrectly formatted.
-
load
Load the options from an option input stream in YAML or JSON. The options file may have missing (defined) values, in these cases the default values are loaded. Seeload()- Parameters:
inputStream- The input stream in YAML or JSON.- Returns:
- The options loaded from input stream.
- Throws:
IOException- if the input stream is not valid or the content is incorrectly formatted.
-
override
Overrides the values in this Options Object from the provided Options Object if they are non-null- Parameters:
overrideOptions- the Options which will be used to override this Options Object- Returns:
- this object for method chaining
-
validate
Description copied from interface:ValidatableChecks if the Validatable object is valid, return a list of errors if it is not valid- Specified by:
validatein interfaceValidatable- Returns:
- a Validation object than can be used queried to find if the object is valid and any errors if it is not valid
-
isIgnoringDeprecatedEndpoints
public boolean isIgnoringDeprecatedEndpoints()
-