Skip to content
Snippets Groups Projects

Configure Renovate

Merged Tine Wittler requested to merge renovate/configure into main
Files
2
from django.forms import Form
from django_forms_as_jsonschema.schema import Schema
from .jsonschema import JSONSchema
class JSONSchemaFormMixin:
def as_jsonschema(self: Form) -> str:
schema = Schema()
def as_jsonschema(self: Form) -> dict:
schema = JSONSchema()
for name, field in self.fields.items():
schema.add_field(name, field)
return schema.schema
Loading