Skip to content

Commit

Permalink
Relax - Agent must have id or name
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-metalinkage committed Sep 12, 2024
1 parent 32aca29 commit e88b0a2
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions _sources/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,20 +125,21 @@
}
}
},
"EntityType": {
"type": "string",
"enum": [
"Entity",
"Bundle",
"Plan","prov:Entity",
"prov:Bundle",
"prov:Plan"
]
},
"EntityType": {
"type": "string",
"enum": [
"Entity",
"Bundle",
"Plan",
"prov:Entity",
"prov:Bundle",
"prov:Plan"
]
},
"EntityTypes": {
"oneOf": [
{
"$ref": "#/$defs/EntityType"
"$ref": "#/$defs/EntityType"
},
{
"type": "array",
Expand Down Expand Up @@ -680,8 +681,17 @@
]
}
},
"required": [
"name"
"oneOf": [
{
"required": [
"name"
]
},
{
"required": [
"id"
]
}
],
"anyOf": [
{
Expand All @@ -704,7 +714,7 @@
"type"
]
},
{
{
"properties": {
"agentType": {
"$ref": "#/$defs/AgentType"
Expand Down Expand Up @@ -746,13 +756,19 @@
"oneOf": [
{
"type": "string",
"enum": ["prov:Usage","Usage" ]
"enum": [
"prov:Usage",
"Usage"
]
},
{
"type": "array",
"contains": {
"type": "string",
"enum": ["prov:Usage","Usage" ]
"enum": [
"prov:Usage",
"Usage"
]
},
"items": {
"type": "string"
Expand Down

0 comments on commit e88b0a2

Please sign in to comment.