Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
egekorkan committed Jan 9, 2025
1 parent 8c39102 commit 021941b
Showing 1 changed file with 48 additions and 2 deletions.
50 changes: 48 additions & 2 deletions proposals/initial-connection/tooling/schema-new.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,21 @@
"type": "object",
"properties": {
"scheme": {
"type": "string"
"type": "string",
"pattern": ".+:.*",
"$comment": "same as now but will be probably made binding-specific"
},
"@type": {
"$ref": "#/definitions/type_declaration"
},
"description": {
"$ref": "#/definitions/description"
},
"descriptions": {
"$ref": "#/definitions/descriptions"
},
"proxy": {
"$ref": "#/definitions/anyUri"
}
}
},
Expand All @@ -30,7 +44,39 @@
}
},
"singleSchemaDefinition": {
"type": "object"
"type": "object",
"$comment": "A JSON Schema definition"
},
"description": {
"type": "string"
},
"descriptions": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"type_declaration": {
"oneOf": [
{
"type": "string",
"not": {
"const": "tm:ThingModel"
}
},
{
"type": "array",
"items": {
"type": "string",
"not": {
"const": "tm:ThingModel"
}
}
}
]
},
"anyUri": {
"type": "string"
}
},
"properties": {
Expand Down

0 comments on commit 021941b

Please sign in to comment.