-
Notifications
You must be signed in to change notification settings - Fork 33
Command API message validation
Validation for outgoing command API messages is available now.
To enable the validation in JNDI user need to add (or uncomment) following configuration in vagrant cpp.yml file.
"java:global/envelope.validation.exception.handler": binding-type: simple type: java.lang.String value: "uk.gov.justice.services.core.envelope.RethrowingValidationExceptionHandler"
If the user doesn't want to validate all the schemas they can configure action name(s) into whitelist so validation for those schemas will be ignored.
Configuration for the white list is based on each microservice configuration. For example to configure white list in Defence context
"java:/app/defence-service/schema.validation.action.whitelist": binding-type: simple type: java.lang.String value: "audit.events.audit-recorded,usersgroups.get-groups-by-user,defence.defence-client-idpc-access-orgs"