Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

OASValidation Error Handling

OAS policy has an error message that looks something like this:

 

 

 OASValidation OAS-ValidateFromSwagger with resource "oas://tokenizacion-v1-openapi.yaml": failed with reason: "[ERROR - [Path '/solicitud'] Object has missing required properties (["idSuscripcion"]): []]"

 

 

And it is saved in the variable "OASValidation.OAS-ValidateFromSwagger.fault.cause". How do I go about extracting this error message to create a custom error payload?

Is there a variable I can call that only returns the reason?

1 6 697
6 REPLIES 6