Azure / opendigitaltwins-building

Open Digital Twins Definition Language (DTDL) RealEstateCore Ontology
MIT License
150 stars 42 forks source link

Fixed wrong enum value name in Capability interface #36

Closed JMayrbaeurl closed 3 years ago

JMayrbaeurl commented 3 years ago

Enum value uses 'Compressed Air' with space as name, which is invalid. Changed to 'CompressedAir'.

Proof from DTDLValidator:

*** Error parsing models
Error 1:
dtmi:digitaltwins:rec_3_3:core:Capability:_contents:__phenomenon:_schema:_enumValues:__Compressed Air;1's property 'name' has value 'Compressed Air', which is invalid. Modify the value of 'name' to make it match the regular expression '^[A-Za-z](?:[A-Za-z0-9_]*[A-Za-z0-9])?$'.
Primary ID: dtmi:digitaltwins:rec_3_3:core:Capability:_contents:__phenomenon:_schema:_enumValues:__Compressed Air;1
Secondary ID: 
Property: name
hammar commented 3 years ago

Good catch, thanks!