rossvideo / Catena

Other
4 stars 0 forks source link

applies slightly different schema for template_oid vs type params #180

Closed mejohnnaylor closed 3 weeks ago

mejohnnaylor commented 3 weeks ago

fixes an issue with the json-schema where params with a template_oid would be flagged as errors because they didn't have a "type" field. Introduces two different schemas for params that are selected according to whether a type, or template_oid field is present. Note it does not check of they both are, which would be an error/confusing. Also will produce misleading error message "missing type property" if the template_oid field is missing/misspelled.