id |
---|
json-schema-config |
This a basic program execution flow algorithm that runs (for json-schema backend configuration) when a code generation command is issued:
- input - path to the Morphir IR (morphir-ir.json)
- output - directory part for the generated code (./dist)
- target - target language to generate (JsonSchema)
- target-version - Language version (2020-12)
- copy-deps - copy the dependencies used by the generated code (false)
- limit-to-modules - Limit the set of modules to be included ('')
- filename - filename of the generated Json Schema ('')
- user-config - path to the user config file
- group-by - Group generated code by package, module or type (package)
- Check if a configuration filepath is specified and if yes:
- read the content of the configuration file
- load the config parameters into a variable
- assign the program options based on the config
- If no config filepath is specified:
- Set the opts.config to null
- Set the values of the JsonBackend-related config
- Set the values of the non-JsonBackend-related config