May 7, 2024, 7:57 p.m. | Stefan Alfbo

DEV Community dev.to

If you have a web API you're probably using JSON as the format to exchange data between the API and the client.


This exchange forms an implicit contract between the API and its consumers.


JSON Schema can be a great tool to document this contract, define constraints and validate the contract.


In Python we can use the jsonschema library to enable the power of JSON Schema in our projects.


Lets give it a try based on the quickstart project from …

100daystooffload api client constraints consumers data django document format forms json python schema tool web

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US