Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 11 additions & 28 deletions docs/static/schemas/draft/2-1-0/application.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -696,13 +696,17 @@
"type": "object",
"additionalProperties": false,
"properties": {
"database_entry": {
"$ref": "#/$defs/database_entry"
},
"urdf": {
"title": "URDF",
"description": "The URDF describing the hardware",
"type": "string"
"oneOf": [
{
"$ref": "#/$defs/database_entry"
},
{
"title": "URDF",
"description": "The URDF describing the hardware",
"type": "string"
}
]
},
"rate": {
"description": "The rate in Hz at which to run the hardware interface",
Expand Down Expand Up @@ -887,29 +891,8 @@
}
},
"required": [
"urdf",
"rate"
],
"oneOf": [
{
"required": [
"database_entry"
],
"not": {
"required": [
"urdf"
]
}
},
{
"required": [
"urdf"
],
"not": {
"required": [
"database_entry"
]
}
}
]
}
}
Expand Down
39 changes: 11 additions & 28 deletions docs/static/schemas/draft/2-1-0/application.types.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -696,13 +696,17 @@
"type": "object",
"additionalProperties": false,
"properties": {
"database_entry": {
"$ref": "#/$defs/database_entry"
},
"urdf": {
"title": "URDF",
"description": "The URDF describing the hardware",
"type": "string"
"oneOf": [
{
"$ref": "#/$defs/database_entry"
},
{
"title": "URDF",
"description": "The URDF describing the hardware",
"type": "string"
}
]
},
"rate": {
"description": "The rate in Hz at which to run the hardware interface",
Expand Down Expand Up @@ -887,29 +891,8 @@
}
},
"required": [
"urdf",
"rate"
],
"oneOf": [
{
"required": [
"database_entry"
],
"not": {
"required": [
"urdf"
]
}
},
{
"required": [
"urdf"
],
"not": {
"required": [
"database_entry"
]
}
}
]
}
}
Expand Down
39 changes: 11 additions & 28 deletions schemas/applications/schema/hardware.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@
"type": "object",
"additionalProperties": false,
"properties": {
"database_entry": {
"$ref": "common/database_entry.schema.json"
},
"urdf": {
"title": "URDF",
"description": "The URDF describing the hardware",
"type": "string"
"oneOf": [
{
"$ref": "common/database_entry.schema.json"
},
{
"title": "URDF",
"description": "The URDF describing the hardware",
"type": "string"
}
]
},
"rate": {
"description": "The rate in Hz at which to run the hardware interface",
Expand Down Expand Up @@ -202,29 +206,8 @@
}
},
"required": [
"urdf",
"rate"
],
"oneOf": [
{
"required": [
"database_entry"
],
"not": {
"required": [
"urdf"
]
}
},
{
"required": [
"urdf"
],
"not": {
"required": [
"database_entry"
]
}
}
]
}
}
Expand Down