Skip to content

roverdotcom/drf-jsonschema-serializer

 
 

Repository files navigation

Django REST Framework JSON Schema support

Version: 3.0.0
Source:https://github.com/maykinmedia/drf-jsonschema-serializer
Keywords:django, rest, jsonschema

Tests and PyPI publishing Coverage status Linting and code quality black Documentation Status

python-versions django-versions pypi-version

JSON Schema support for Django REST Framework

Overview

drf-jsonschema-serializer is a library built around Django REST Framework. It does the following:

  • Convert a DRF serializer into a JSON Schema.
  • Provides JSONSchemaField that can validate JSON data according to a JSON schema.
  • Provides a SerializerJSONField that can validate JSON data according to a serializer for a field.

This lets you use client-side form libraries such as react-jsonschema-form to generate a web form from a serializer. This way you can use the same schema for client-side form generation and validation as you use for REST service input validation.

See the documentation for getting started and usage examples.

Credits and roadmap

Many thanks to https://github.com/isprojects for the initial work on this library. As of September 2021, Maykin Media has taken up maintenance of this package after transferring it from isprojects. See the issues on Github for the roadmap.

See also CREDITS.txt for a full history of authorship.

About

JSON schema integration for Django REST Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%