Skip to content
This repository was archived by the owner on Aug 13, 2020. It is now read-only.

Command API message validation

uzairbaig edited this page Feb 21, 2019 · 1 revision

Validation for outgoing command API messages is available now.

Enable Validation:

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"

Skip schema validation:

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"

Clone this wiki locally