Skip to content

Commit

Permalink
Modify do-step schema to be type array (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricziel authored Jan 7, 2021
1 parent b29ea77 commit f14ebf3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [Unreleased]
### Added
- Add test case for json schema validation
- Modify do-step schema to be type array

### Changed

Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/schema/pipeline.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,10 @@
"do-step": {
"properties": {
"do": {
"$ref": "#/definitions/step",
"type": "array",
"items": {
"$ref": "#/definitions/step"
},
"description": "Simply performs the given steps serially, with the same semantics as if they were at the top level step listing."
}
},
Expand Down
14 changes: 11 additions & 3 deletions src/test/testData/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,21 @@ resources:
type: github-status
icon: github

plan:
- name: x86-8.0
jobs:
- name: foo
max_in_flight: 1
on_success:
do:
- put: repo-status
params:
path: source-git
statuses:
- state: pending
description: Building on concourse
context: x86-8.0
plan:
- get: source-git
trigger: true
passed: [ self-update ]
- put: repo-status
params:
path: source-git
Expand Down

0 comments on commit f14ebf3

Please sign in to comment.