Skip to content

Commit

Permalink
Fixed invalid json
Browse files Browse the repository at this point in the history
  • Loading branch information
rubendel committed Jan 24, 2017
1 parent dcf9678 commit aff78aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
23 changes: 9 additions & 14 deletions BimServer/src/org/bimserver/database/queries/json/validifc.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,15 @@
"IfcConversionBasedUnit": {
"type": "IfcConversionBasedUnit"
},
"IfcDerivedUnitElement": [
{
"type": "IfcDerivedUnitElement",
"field": "Unit",
"includes": [
"IfcContextDependentUnit",
"IfcConversionBasedUnit",
"IfcSIUnit"
]
},
{
"type": "IfcDerivedUnitElement"
}
],
"IfcDerivedUnitElement": {
"type": "IfcDerivedUnitElement",
"field": "Unit",
"includes": [
"IfcContextDependentUnit",
"IfcConversionBasedUnit",
"IfcSIUnit"
]
},
"Dimensions": {
"type": "IfcConversionBasedUnit",
"field": "Dimensions",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private void parseDefines(Query query, ObjectNode jsonNode) throws QueryExceptio
Include include = new Include(packageMetaData);
query.addDefine(fieldName, include);
} else {
throw new QueryException("\"defines\"[" + i + "] must be of type object");
throw new QueryException("\"defines\"[" + fieldName + "] must be of type object");
}
i++;
}
Expand Down

0 comments on commit aff78aa

Please sign in to comment.