inkandswitch / cambria-project

Schema evolution with bi-directional lenses.
MIT License
592 stars 24 forks source link

[WIP] Add default values #1

Closed geoffreylitt closed 4 years ago

geoffreylitt commented 4 years ago

Whenever an object is created, expand that patch to also (recursively) fill in default values. Uses a JSON schema to decide what values to fill in.

This WIP has the basic logic done so far, needs more cleanup

Rough todo list:

auto-generating schemas:

In the arthropod context we always have a json schema. But in other cloudina contexts (eg our github demo from the other day), the user might not have a schema readily available. In these cases we can try auto-gen from the doc?