ES-DOC / esdoc-questionnaire

ES-DOC Questionnaire (webform generator for creating CIM Documents). POC: @allynt
Other
2 stars 1 forks source link

Consolodate the code for registering a schema & a specialization. #533

Closed allynt closed 7 years ago

allynt commented 7 years ago

Consolodate the code for registering a schema & a specialization. The "parse_schema" fn and "parse_specialization" fn are nearly identical. This is because the JSON Schema used to define an ontology for the Q is the same for schemas and specializations. Surely, therefore, I can consolidate those 2 functions to avoid code duplication.

allynt commented 7 years ago

Note, that once this is done, I can no longer decide whether or not to render a component hierarchy based on whether the ontology is a specialization or a schema but on whether it explicitly has any hierarchical properties.