Skip to content

return 400 as statuscode when invalid input params in get api

VidyaDharani Lokam requested to merge az/vl-fix-400-for-invalid-params into master

Issue reference: !132

Currently the get api for getSchemaInfoList returning 200(OK) as status code even if contains any unknown requestparams or typos as mentioned in the above issue.

  • To fix this added a validation logic to allow only the defined requestparams(authority, source, entity, schema version major, schema version minor, schema version patch, status, scope, latestVersion, limit, offset). In case of any unknown requestparams or typos the code will return 400(Bad request).
Edited by VidyaDharani Lokam

Merge request reports