Class OpenApiGeneratorValidateExtension
-
- All Implemented Interfaces:
public class OpenApiGeneratorValidateExtensionGradle project level extension object definition for the generators task
Jim Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private final RegularFilePropertyinputSpecprivate final Property<String>remoteInputSpecprivate final Property<Boolean>recommendprivate final Property<Boolean>treatWarningsAsErrors
-
Constructor Summary
Constructors Constructor Description OpenApiGeneratorValidateExtension(Project project)
-
Method Summary
Modifier and Type Method Description final RegularFilePropertygetInputSpec()The input specification to validate. final Property<String>getRemoteInputSpec()The remote input specification to validate. final Property<Boolean>getRecommend()Whether to offer recommendations related to the validated specification document. final Property<Boolean>getTreatWarningsAsErrors()Whether to treat warnings as errors and fail the task. final UnitsetInputSpec(String path)Backwards-compatibility bridge for inputSpec final Unitset(RegularFileProperty $self, String path)Extension function to allow setting inputSpec with a String path in Kotlin DSL. -
-
Method Detail
-
getInputSpec
final RegularFileProperty getInputSpec()
The input specification to validate. Supports all formats supported by the Parser.
-
getRemoteInputSpec
final Property<String> getRemoteInputSpec()
The remote input specification to validate. Supports URLs/URIs.
-
getRecommend
final Property<Boolean> getRecommend()
Whether to offer recommendations related to the validated specification document. Defaults to
true.
-
getTreatWarningsAsErrors
final Property<Boolean> getTreatWarningsAsErrors()
Whether to treat warnings as errors and fail the task. Defaults to
false.
-
setInputSpec
final Unit setInputSpec(String path)
Backwards-compatibility bridge for inputSpec
-
-
-
-