This ticket is to update the commit hash of modelica-json to the latest available in the master branch of https://github.com/lbl-srg/modelica-json.
This is needed to include the fixes from lbl-srg/modelica-json#281, namely
- correct and recursive parsing of logical expressions
- handling of package.order
TODO:
This ticket is to update the commit hash of modelica-json to the latest available in the master branch of https://github.com/lbl-srg/modelica-json.
This is needed to include the fixes from lbl-srg/modelica-json#281, namely
TODO:
Regression in expression parsing modelica-json#294
Guard against expanding literal strings #483
Add support not operator in expression evaluation #462:
{ operator: "!", operand: [...] }: switch clause added, test updatedSolve rdflib (peer dep from modelica-json) not compiling with tsc: now excluded with
skipLibCheckRefactor for updated schema modelica-json#245:
class_definitionis nowstored_class_definitionsRefactor for change in
⚠️ What is called here
arithmetic_expressionsschemaarithmetic_expressionsdiffers from the grammar:arithmetic-expression : [ add-operator ] term { add-operator term }. Instead modelica-json seems to usesimple_expressionas an equivalent for the grammararithmetic-expression... but not always: see next bullet point.Old schema
{ "arithmetic_expressions": [ { "name": "fanSupDra.typ" }, { "name": "Buildings.Templates.Components.Types.Fan.None" } ], "relation_operator": "<>" }New schema
{ "arithmetic_expressions": [ "fanSupDra.typ", "Buildings.Templates.Components.Types.Fan.None" ], "relation_operator": "<>" }Expansion of
simple_expression❌ Conflict with Ag/478 remove check #479
Old schema
New schema