A DRY method to turn SQLAlchemy entities (models) into React forms.
Proof of concept: rapid on Github
- SQLAlchemy: SQL Toolkit and Object Relational Mapper (ORM)
- Marshmallow: (de)serialization and validation
- Marshmallow-SQLAlchemy: auto-generates Marshmallow schemas from SQLAlchemy entities
- JSON Schema: is a vocabulary that allows you to annotate and validate JSON documents.
- marshmallow-jsonschema: translates marshmallow schemas into JSON Schema Draft v4 compliant jsonschema
- react-jsonschema-form (live playground): builds HTML forms out of a JSON schema
- Required fields should not permit empty string
- marshmallow-jsonschema creates incompatible JSON schema for integers
- Form field names aren't pretty, use better titles.
- marshmallow-jsonschema can't handle Enums
- react-jsonschema-form will handle nested records, but not clear how to get a Parent/Child relationship through our SA/marshmallow stack so that works.