HTTP Response Schema
Compare the runtime schema to the expected schema for HTTP response body.
This assertion checks the body of an HTTP response and identifies differences. It automatically checks for known content types like JSON and gRPC to compare key by key, if possible.
If no content type is identified, the default comparison is a simple hash compare.
Example with Ignore
Example with Include Only
|ignore||Comma-separated list of JSON Paths that will be ignored during comparison. A key will match if it contains one of the ignored strings anywhere in the path. For example, an ignore string of |
|includeOnly||Comma-separated JSON Paths that will be included during comparison. All other keys will be ignored. Given strings work the same as for ignore.|
|matchType||Validate that values are the same type. For example, a field with a recorded value of |
|allowNew||Allow new fields in the replay response which do not exist in the recorded response.|
- gRPC payloads are first decoded into JSON using a pseudo-human readable key format.