Azure / opendigitaltwins-dtdl

Digital Twins Definition Language
Creative Commons Attribution 4.0 International
470 stars 160 forks source link

Should @context be string array? #50

Closed apulliam closed 4 years ago

apulliam commented 4 years ago

The docs show @context as string, but downloaded device templates have it a string array

briancr-ms commented 4 years ago

The modeling language is built on JSON-LD where each value (or object of a predicate), barring other constraints, can be a single value or multiple values. In JSON-LD this is represented by a single value or an array (set) of values, so @context can be either a single value or an array of values if there is more than one context.