icook / yota

Flexible Python web forms with asynchronous validation
Other
33 stars 3 forks source link

Decouple validation and form rendering #80

Open icook opened 11 years ago

icook commented 11 years ago

Allow the validation to be used by multiple data sources more easily. Explore JSONSchema.

prologic commented 11 years ago

Cool :) So my thoughts (to clarify) are:

Server -> Client

  1. Write form schema(s) using JSON Schema 2) Translate JSON Schema(s) to Yota form(s) 3) Render Yota form(s)

Client -> Server

  1. Post form data
  2. Process form data
  3. Apply to JSON Schema(s)

This way we decouple the form validation from the rendering and make for hooking up storage backends more convenient since the data is no longer tired to the forms.

prologic commented 10 years ago

See comment: https://github.com/icook/yota/issues/75#issuecomment-38887678

I think this should be merged with Issue #75