Class API.SetProperty
java.lang.Object
com.shaft.properties.internal.API.SetProperty
- All Implemented Interfaces:
EngineProperties.SetProperty
- Enclosing interface:
API
Fluent builder that allows programmatic override of individual API configuration properties.
All setter methods return
this to support method chaining.
Example:
SHAFT.Properties.api.set()
.swaggerValidationEnabled(true)
.swaggerValidationUrl("https://petstore.swagger.io/v2/swagger.json");
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionswaggerValidationEnabled(boolean value) Overrides theswagger.validation.enabledproperty at runtime.swaggerValidationUrl(String value) Overrides theswagger.validation.urlproperty at runtime.
-
Constructor Details
-
SetProperty
public SetProperty()Creates a newSetPropertyinstance.
-
-
Method Details
-
swaggerValidationEnabled
Overrides theswagger.validation.enabledproperty at runtime.- Parameters:
value-trueto enable Swagger/OpenAPI response validation- Returns:
- this
API.SetPropertyinstance for chaining
-
swaggerValidationUrl
Overrides theswagger.validation.urlproperty at runtime.- Parameters:
value- the URL of the Swagger/OpenAPI specification document- Returns:
- this
API.SetPropertyinstance for chaining
-