sogno-platform / cimgen

Code generation from CIM data model for several programming languages
Apache License 2.0
16 stars 7 forks source link

include isAssociationUsed() only for modernpython #27

Closed m-mirz closed 5 months ago

m-mirz commented 6 months ago

isAssociationUsed() breaks the cpp and java code generation since the associated langpacks use json.load(). isAssociationUsed() introduces True/False into the json object which is not valid json. In json it would be true/false.

Maybe we should only use dicts and avoid json objects entirely. Changing this attribute to true/false does not work with the mustache template. For now, I included the call to isAssociationUsed() only for modernpython.

I have also added devcontainer files, fixed the dockerfile and updated the README.

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud