Star

Created With

linkSwagger & Open API

If you already have an Open API / swagger defined, you can use it to validate actual responses.

Both JSON and YAML files are supported.

⚠️ NOTE: All $ref are dynamically de-referenced automatically, those both local AND remote.



specs/example-spec.yml
1link - name: get users

2link request:

3link path: /users

4link method: get

5link response:

6link json_schema:

7link type: file

8link # note the use of %2F to escape the "application/json" part of the path

9link $ref: 'docs/paths/register.yml#/post/responses/200/content/application%2Fjson/schema'

docs/paths/register.yml
1linkpost:

2link responses:

3link '200':

4link content:

5link application/json:

6link schema:

7link type: object

8link properties:

9link dob:

10link type: string

11link format: date-time

12link required: [ dob ]


💡 NOTE: paths containing a forward slash can be URL-encoded as %2F



See also:



Swagger & Open API

Home

Getting Startedchevron_right
Basicschevron_right
Requestchevron_right

Request Basics Headers Cookies Query Parameters Path Parameters

Payload Bodychevron_right

File Uploads Auto-Retry Additional Options

Response Validationchevron_right

Overview

Assertionschevron_right

Status Code Headers & Cookies

Bodychevron_right
Hooks & JSchevron_right

Overview

Function Typeschevron_right
Suite-Level Hookschevron_right
Spec-Level Hookschevron_right
Contextchevron_right
DRY & Reusing Specschevron_right
Command Line Interface (CLI)chevron_right