# 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:
- First define an API Specification using Swagger 2 / OpenAPI 3 format in
Configuration
>>Specifications
tab. - Then create a test case and link the operation id in
Details tab
with the operation defined in API specification file. - In the test case's
Validation
tab >>Assertions
sub-tab, you may specify the assertion with sourceRequest
to validate the request structure of the testcase.
For more information on the request validation, please read our guide on specification driven testing.