简体   繁体   中英

Validate JSON Schema in WSO2 API Manager

Please suggest the possible techniques to validate(NULL, NOT NULL, TAG presence, length, etc.) incoming request JSON schema elements in API Manager before backend service is invoked.

Is it recommended to perform schema level validation in WSO2 API Manager? As per my knowledge, schema validations(XML/JSON) should be done at client side before API deployed on API Manager in invoked.

Any comments would be appreciated.

Regards, Abhishek

In order to validate the request json you can use OpenAPI validation specifications. apim facilitates you to edit the OpernAPI spec from the UI it self.
As per my knowledge you can do the validation in both places, but if you do the validation in the client it self you can prevent the API invocation to api manager.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM