{"id":21662672,"url":"https://github.com/codesyntax/django_remote_jsonschema_forms","last_synced_at":"2026-02-27T17:46:45.620Z","repository":{"id":243810579,"uuid":"813512382","full_name":"codesyntax/django_remote_jsonschema_forms","owner":"codesyntax","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-12T14:13:50.000Z","size":35,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-12T15:25:53.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codesyntax.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-11T08:25:29.000Z","updated_at":"2025-03-12T14:13:53.000Z","dependencies_parsed_at":"2024-11-25T10:17:41.747Z","dependency_job_id":"af6c6369-d0b0-4220-8cd2-01262efb87af","html_url":"https://github.com/codesyntax/django_remote_jsonschema_forms","commit_stats":null,"previous_names":["codesyntax/django_remote_jsonschema_forms"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fdjango_remote_jsonschema_forms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fdjango_remote_jsonschema_forms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fdjango_remote_jsonschema_forms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesyntax%2Fdjango_remote_jsonschema_forms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesyntax","download_url":"https://codeload.github.com/codesyntax/django_remote_jsonschema_forms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560373,"owners_count":20472219,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-25T10:17:39.350Z","updated_at":"2026-02-27T17:46:40.594Z","avatar_url":"https://github.com/codesyntax.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# django_remote_jsonschema_forms\n\n\nA package that allows you to serialize django forms, including fields and widgets into Python\ndictionary for easy conversion into JSON Schema.\n\nThis way one can expose a django form using the [JSON Schema](https://json-schema.org/) standard.\n\nThese forms can be then rendered using JS libraries like [react-jsonschema-form](https://rjsf-team.github.io/react-jsonschema-form/docs/).\n\n\nThis package is heavily based on [django-remote-forms](https://github.com/WiserTogether/django-remote-forms), which we have used as an example. \n\nWe have changed the output format that `django-remote-forms` provides and return a JSON Schema compatible format.\n\n\n## Usage\n\nSay you have a django form like this one:\n\n```python\nfrom django.db import models\nfrom django import forms\n\nclass Task(models.Model):\n    text = models.TextField(\"Text\")\n    email = models.TextField(\"Text\")\n\nclass MyForm(forms.ModelForm):\n\n    class Meta:\n        model =  Task\n\n```\n\nYou can create a view to expose it in JSON Schema like this:\n\n\n```python\nfrom .forms import MyForm\nfrom django_remote_jsonschema_forms.forms import RemoteJSONSChemaForm\nfrom django.http import JsonResponse\n\ndef json_schema_form_view(request):\n    form = MyForm()\n    remote_form = RemoteJSONSChemaForm(form)\n    return JsonResponse(remote_form.as_dict())\n\n```\n\nRemember that you will need to register a url in `urls.py` to expose it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesyntax%2Fdjango_remote_jsonschema_forms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesyntax%2Fdjango_remote_jsonschema_forms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesyntax%2Fdjango_remote_jsonschema_forms/lists"}