config.openapi-validator.yml Maven / Gradle / Ivy
# Default openapi-validator configuration
---
# Enable request validation. Response validation is not done on the server but client.
enabled: ${validator.enabled:true}
# Log error message if validation error occurs
logError: ${validator.logError:true}
# Skip body validation set to true if used in light-router, light-proxy and light-spring-boot.
skipBodyValidation: ${validator.skipBodyValidation:false}
# Enable response validation.
validateResponse: ${validator.validateResponse:false}
# When a field is set as nullable in the OpenAPI specification, the schema validator validates that it is nullable
# however continues with validation against the nullable field
 
# If handleNullableField is set to true && incoming field is nullable && value is field: null --> succeed
# If handleNullableField is set to false && incoming field is nullable && value is field: null --> it is up to the type 
# validator using the SchemaValidator to handle it.
handleNullableField: ${validator.handleNullableField:true}
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy