Skip to content

Instantly share code, notes, and snippets.

@rido-min
Last active September 3, 2020 04:02
Show Gist options
  • Save rido-min/0ad96d2cd157c1ae1e6993bccde8f012 to your computer and use it in GitHub Desktop.
Save rido-min/0ad96d2cd157c1ae1e6993bccde8f012 to your computer and use it in GitHub Desktop.
dtdl-snippets.json
"Add DTDL Property" : {
"prefix": ["dtp"],
"body" : ["{ \n\t\"@type\" : \"Property\", \n\t\"name\" : \"$1\", \n\t\"schema\" : \"$0\" \n},"],
"description": "Adds a DTDL property"
},
"Add DTDL Telemetry" : {
"prefix": ["dtt"],
"body" : ["{ \n \t\"@type\" : \"Telemetry\", \n\t\"name\" : \"$1\", \n\t\"schema\" : \"$0\" \n},"],
"description": "Adds a DTDL Telemetry"
},
"Add DTDL Command" : {
"prefix": ["dtc"],
"body" : ["{ \n \t\"@type\" : \"Command\", \n\t\"name\" : \"$1\", \n\t\"request\" : { \n\t\t\"name\" : \"$0\", \n\t\t\"schema\" : \"integer\" } \n},"],
"description": "Adds a DTDL Command"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment