Handling complex JSON Schemas in Python
In a previous post we looked at how to test your Python API app with JSON Schema. In case you have to deal with complex and nested JSON data, schema definitions can get long and confusing. However, there are ways to clean up and reuse your schemas by using references. Let’s see what they are and how you can leverage them in your testing setup.
Let’s take an example endpoint
GET /recordings/:id which returns a JSON response for a recording of a classical music piece: