# Request Validation

With vREST NG, you may validate the request structure of the test case as well. So you may check whether it conforms with the request structure defined in the API specification file or not.

In order to validate the request structure of a test case, you may need to specify the following:

  1. First define an API Specification using Swagger 2 / OpenAPI 3 format in Configuration >> Specifications tab.
  2. Then create a test case and link the operation id in Details tab with the operation defined in API specification file.
  3. In the test case's Validation tab >> Assertions sub-tab, you may specify the assertion with source Request to validate the request structure of the testcase.

For more information on the request validation, please read our guide on specification driven testing.