standardhealth / shr-es6-export

ES6 library for exporting SHR models to ES6 classes
Apache License 2.0
3 stars 0 forks source link

Class registry concept #47

Closed dehall closed 5 years ago

dehall commented 5 years ago

Implements the concept of a "class registry" where the implementation of a class is not directly referenced but instead looked up in a lookup table. This allows for the classes to be subclassed and then plugged into the lookup table, allowing for the rest of the code to reference the subclasses instead. The reason for this is that we know there are a number of remaining issues with the exporter, so this approach will allow for users to manually apply fixes to the generated classes as subclasses, which are then preserved across re-generations of the code. Ideally this should be a lot easier than making and re-applying one's changes every time the classes get re-generated.

dehall commented 5 years ago

PR seems to be out of sync with the branch, so closing and re-opening to try to get it realigned