Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
drf-jsonschema-serializer
Advanced tools
:Version: 3.0.0 :Source: https://github.com/maykinmedia/drf-jsonschema-serializer :Keywords: django, rest, jsonschema
|build-status| |coverage| |linting| |black| |docs|
|python-versions| |django-versions| |pypi-version|
JSON Schema support for Django REST Framework
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.
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.
.. |build-status| image:: https://github.com/maykinmedia/drf-jsonschema-serializer/actions/workflows/ci.yml/badge.svg :target: https://github.com/maykinmedia/drf-jsonschema-serializer/actions/workflows/ci.yml :alt: Tests and PyPI publishing
.. |linting| image:: https://github.com/maykinmedia/drf-jsonschema-serializer/actions/workflows/code-quality.yml/badge.svg :target: https://github.com/maykinmedia/drf-jsonschema-serializer/actions/workflows/code-quality.yml :alt: Linting and code quality
.. |coverage| image:: https://codecov.io/gh/maykinmedia/drf-jsonschema-serializer/branch/main/graph/badge.svg :target: https://app.codecov.io/gh/maykinmedia/drf-jsonschema-serializer :alt: Coverage status
.. |python-versions| image:: https://img.shields.io/pypi/pyversions/drf-jsonschema-serializer.svg
.. |django-versions| image:: https://img.shields.io/pypi/frameworkversions/django/drf-jsonschema-serializer.svg
.. |pypi-version| image:: https://img.shields.io/pypi/v/drf-jsonschema-serializer.svg :target: https://pypi.org/project/drf-jsonschema-serializer/
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/psf/black
.. |docs| image:: https://readthedocs.org/projects/drf-jsonschema-serializer/badge/?version=latest :target: https://drf-jsonschema-serializer.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
.. _documentation: https://drf-jsonschema.readthedocs.io/
FAQs
JSON Schema support for Django REST Framework
We found that drf-jsonschema-serializer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.