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 TypeMethodDescriptioncontractSensitiveKeys(String value) Overrides the HTTP contract sensitive key list.contractVolatileKeys(String value) Overrides the HTTP contract volatile key list.openApiCoverageReportEnabled(boolean value) Overrides theopenapi.coverage.report.enabledproperty at runtime.openApiCoverageThreshold(int value) Overrides theopenapi.coverage.thresholdproperty at runtime.swaggerValidationEnabled(boolean value) Overrides theswagger.validation.enabledproperty at runtime.swaggerValidationUrl(String value) Overrides theswagger.validation.urlproperty at runtime.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EngineProperties.SetProperty
logPropertyUpdate
-
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
-
openApiCoverageReportEnabled
Overrides theopenapi.coverage.report.enabledproperty at runtime.- Parameters:
value-trueto enable OpenAPI coverage reporting- Returns:
- this
API.SetPropertyinstance for chaining
-
openApiCoverageThreshold
Overrides theopenapi.coverage.thresholdproperty at runtime.- Parameters:
value- required coverage percentage from0to100;0disables enforcement- Returns:
- this
API.SetPropertyinstance for chaining - Throws:
IllegalArgumentException- ifvalueis outside0..100
-
contractSensitiveKeys
Overrides the HTTP contract sensitive key list.- Parameters:
value- comma-separated key fragments to redact- Returns:
- this
API.SetPropertyinstance for chaining
-
contractVolatileKeys
Overrides the HTTP contract volatile key list.- Parameters:
value- comma-separated key names to normalize- Returns:
- this
API.SetPropertyinstance for chaining
-