QID 580549
QID 580549: Required Field Matches Schema
The purpose of the test is to enforce the required data is present in the request that goes to the server. This test will ensure required fields are always present. Each request is evaluated based on fields marked as required. If the end point does not have the required fields the request is determined as invalid. The API server should reject all the requests that do not have required fields with a 4XX response. Based on the analysis of the results it is determined that the required fields are enforced and the API are implemented as expected.The response code received for the request with missing required fields is expected and matches the response documented in the swagger file schema.
Making sure required fields are always present will provide clarity to the API users. Automation of the API usage, testing becomes easier with the enforcement.
CVEs related to QID 580549
| Advisory ID | Software | Component | Link |
|---|