Skip to content

Commit

Permalink
Refactor task / middleware schema
Browse files Browse the repository at this point in the history
  • Loading branch information
matz3 committed Apr 29, 2020
1 parent a895277 commit 0beb849
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@
"$ref": "../extension.json#/definitions/metadata"
},
"middleware": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
}
}
"$ref": "#/definitions/middleware"
},
"customConfiguration": {
"type": "object",
Expand All @@ -52,12 +46,17 @@
"$ref": "../extension.json#/definitions/metadata"
},
"middleware": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
}
"$ref": "#/definitions/middleware"
},
}
},
"definitions": {
"middleware": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
}
}
}
Expand Down
25 changes: 12 additions & 13 deletions lib/validation/schema/specVersion/2.0/kind/extension/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@
"$ref": "../extension.json#/definitions/metadata"
},
"task": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
}
}
"$ref": "#/definitions/task"
},
"customConfiguration": {
"type": "object",
Expand All @@ -51,12 +45,17 @@
"$ref": "../extension.json#/definitions/metadata"
},
"task": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
}
"$ref": "#/definitions/task"
},
}
},
"definitions": {
"task": {
"type": "object",
"additionalProperties": false,
"properties": {
"path": {
"type": "string"
}
}
}
Expand Down

0 comments on commit 0beb849

Please sign in to comment.