Hi All,
Need help and guidance for the issue we are facing detail mention below,
Description: We are encountering an issue with our API that validates incoming JSON requests against an XSD schema. The API is designed to return specific error messages when mandatory fields are missing from the payload. Backend we are connecting with CPI, we don't want to process the request without mandatory field and we make sure send the missing mandatory field information through policies.
Requirement: When a source system sends a payload that is missing a value in any mandatory field or lacks a mandatory field altogether, the API should return an error message. The recommended messages are:
Solution Design: We have defined the JSON (or XML) schema with the mandatory fields based on our specifications. The validation is set up to occur either at the API layer or later in the iFlow.
We are using the Message Validation policy in SAP API Management to ensure that the XML schema is validated and that the message is well-formed.
Current API Policy Sequence:
Issue: We are encountering the following error during the Message Validation policy step: Error: "Variable request.content does not resolve to a Message."
Request for Assistance:
Clarification: Could you provide guidance on how to correctly reference the request content in the Message Validation policy? We want to ensure that the JSON payload with mandatory elements is properly validated against our XSD schema.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 46 | |
| 31 | |
| 23 | |
| 20 | |
| 19 | |
| 15 | |
| 15 | |
| 11 | |
| 10 | |
| 10 |