Closed mszostok closed 3 years ago
Changes proposed in this pull request:
$ocfRefs
Old syntax:
parameters: input-parameters: jsonSchema: value: |- { "$schema": "http://json-schema.org/draft-07/schema", "$ocfRefs": { "inputType": { "name": "cap.type.automation.concourse.install-input", "revision": "0.1.0" } }, "allOf": [ { "$ref": "#/$ocfRefs/inputType" } ] }
New syntax:
parameters: input-parameters: typeRef: path: cap.type.automation.concourse.install-input revision: 0.1.0
For composition, we switch to supported defintion keyword and inlined schema. It will be changed back once we will add full support for $ocfRefs
defintion
CI test will pass after merging: https://github.com/capactio/capact/pull/402
Testing locally:
hub-manifests
make build-tool-cli
./bin/capact-darwin-amd64 validate $(find ../hub-manifests/manifests -regex ".*\.yaml")
Description
Changes proposed in this pull request:
$ocfRefs
, as this syntax was not supported by CapactOld syntax:
New syntax:
For composition, we switch to supported
defintion
keyword and inlined schema. It will be changed back once we will add full support for$ocfRefs
Testing
CI test will pass after merging: https://github.com/capactio/capact/pull/402
Testing locally:
hub-manifests
PRmake build-tool-cli
./bin/capact-darwin-amd64 validate $(find ../hub-manifests/manifests -regex ".*\.yaml")
Adjust binary path and manifests location if necessary.Related issue(s)