Add notes from SMDX files to JSON models#247
Add notes from SMDX files to JSON models#247bikeshedder wants to merge 2 commits intosunspec:masterfrom
Conversation
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @bikeshedder on file. In order for us to review and merge your code, please contact the project maintainers to get yourself added. |
|
I just realized that the symbol notes are missing as well. I haven't touched those yet so I didn't immediately notice them missing. FYI. I use the models to generate code for the Rust
|
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @bikeshedder on file. In order for us to review and merge your code, please contact the project maintainers to get yourself added. |
|
I just updated the PR and the script in the first message to include the symbol notes. |
|
@bikeshedder Thanks for your work. We've had a lot of discussion about using the 'detail' field in the json models for such notes in the past. But there was no conclusion on how long the detail could be. So, it isn't being used. For now, we think it might be better to add any additional information or notes in our SunSpec DER Model Information Specification: https://sunspec.org/wp-content/uploads/2021/04/SunSpec-DER-Information-Model-Specification-V1-0.pdf We'll go over the notes from the SMDX models and update the documentation. |
|
@Kudrat9 I find the notes quite useful in generated code. They contain some information that is missing otherwise: |
|
I did sign the CLA quite a while ago, but the bot didn't pick that up. @Kudrat9 If you don't consider the notes to be useful for the JSON files feel free to close this PR. |
|
Moved to #261 |
The JSON models were missing the notes from the SMDX files. I do consider those very useful as they explain some of the rather cryptic abbreviations.
I quickly hacked together a Python script to copy the missing notes from the SMDX files to the JSON files:
Licensed under either of
at your option.