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.
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'
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: