Tag

jsonschema

1 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Apr 15, 2025 · Backend Development

Encapsulating Custom Assertions for API Automation Testing

This article explains why custom assertion logic is needed in API automation testing, shows how to build a reusable Assertions class with methods for status code, JSON schema, key, JSONPath, and response time checks, and provides complete Python code examples for each use case.

API testingAutomationcustom assertions
0 likes · 7 min read
Encapsulating Custom Assertions for API Automation Testing
Test Development Learning Exchange
Test Development Learning Exchange
Mar 9, 2025 · Backend Development

Advanced Usage of jsonschema for Complex JSON Validation in Python

This article demonstrates advanced jsonschema techniques in Python, covering complex data structures like arrays and nested objects, custom format and function validators, modular schema validation with RefResolver, and combining jsonschema with Voluptuous for data transformation.

RefResolvercustom validatorjson validation
0 likes · 8 min read
Advanced Usage of jsonschema for Complex JSON Validation in Python
Test Development Learning Exchange
Test Development Learning Exchange
Jul 22, 2024 · Backend Development

Python API Testing Examples Using requests, unittest, pytest, and jsonschema

This article provides a series of Python code examples demonstrating how to perform API automation testing tasks—including GET and POST requests, authentication, file uploads, redirects, unit testing with unittest and pytest, response mocking with responses, and response schema validation with jsonschema—offering practical guidance for backend testing.

API testingRequestsjsonschema
0 likes · 6 min read
Python API Testing Examples Using requests, unittest, pytest, and jsonschema
Test Development Learning Exchange
Test Development Learning Exchange
Jul 21, 2024 · Backend Development

10 Python JSON Schema Validation Examples Using jsonschema Library

The article provides ten code examples demonstrating how to validate JSON data with Python's jsonschema library, covering basic validation, required fields, nested schemas, arrays, uniqueness, enums, ranges, pattern matching, conditional logic, and custom error messages.

JSON SchemaSchema Validationdata validation
0 likes · 7 min read
10 Python JSON Schema Validation Examples Using jsonschema Library
Test Development Learning Exchange
Test Development Learning Exchange
Feb 19, 2024 · Backend Development

Using Python's json Module for Serialization, Deserialization, and API Testing

This article explains how to use Python's built‑in json module for serializing and deserializing data, demonstrates sending JSON payloads with the requests library, and covers advanced techniques such as data‑driven testing, JsonPath/JMESPath extraction, JSON Schema validation, and dynamic request body construction for API automation.

API testingJSONRequests
0 likes · 9 min read
Using Python's json Module for Serialization, Deserialization, and API Testing
360 Quality & Efficiency
360 Quality & Efficiency
Jan 16, 2020 · Fundamentals

Practical Guide to JSON Schema for Data Validation

This article explains the purpose, features, and practical usage of JSON Schema for describing data structures, generating documentation, and validating API inputs and outputs, and provides a detailed example with code and tips for effective schema design.

API testingJSONdata validation
0 likes · 5 min read
Practical Guide to JSON Schema for Data Validation