yank icon indicating copy to clipboard operation
yank copied to clipboard

Create public Schemas for Cerberus

Open Lnaden opened this issue 6 years ago • 0 comments

In follow up to #823, we want to make a YAML(s) which have the human-readable Cerberus schema's for the validators.

There are a few steps to making this happen:

  1. Make the YANKCerberusValidator accept either the current ExperimentBuilder or ExperimentBulder._db as an initialization argument, so it has access to the instance
  2. Take all validator/coerce/normalize/etc. functions and convert them to methods of the YANKCerberusValidatorClass
  3. Design function names non-abiguously so when we write out the YAML dictionary, its all human readable
  4. Ensure we don't get a circular import scheme between experiment.py and schema module.
  5. Figure out how to generate these schemas as part of the docs creation because several depend on reading functions through generate_function_schema that I would rather not hard code
  6. Make sure the schemas can be generated without instancing anything (pure class and static methods). This step strongly depends on the 2nd and 3rd step of this process.

Lnaden avatar Nov 16 '17 18:11 Lnaden