api-manager icon indicating copy to clipboard operation
api-manager copied to clipboard

[APICTL] Introduce a Schema for Params.yaml

Open npamudika opened this issue 3 months ago • 0 comments

Current Limitation

Currently we do the validation for fields in the params.yaml in the code level itself (refer https://github.com/wso2/carbon-apimgt/blob/master/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/APIControllerUtil.java#L352 for example). So when showing errors in the params.yaml it gives a general output.

Suggested Improvement

Incorporate a schema file when validating the params.yaml so that the error messages can also be improved.

Version

No response

npamudika avatar Oct 22 '25 05:10 npamudika