Skip to content

Commit

Permalink
feat: adds Zarf schema for version of Zarf used in UDS CLI, edits COD…
Browse files Browse the repository at this point in the history
…EOWNERS (#418)
  • Loading branch information
UncleGedd authored Feb 12, 2024
1 parent 5d9edcf commit 1bc39aa
Show file tree
Hide file tree
Showing 3 changed files with 1,120 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @UncleGedd @mikevanhemert @jeff-mccoy @decleaver
* @UncleGedd @jeff-mccoy @decleaver @mjnagel
8 changes: 8 additions & 0 deletions hack/generate-schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ jq '.definitions.Task.properties.inputs.patternProperties = {"^[_a-zA-Z][a-zA-Z0
mv temp_tasks.schema.json tasks.schema.json
jq '.definitions.Action.properties.with.patternProperties = {"^[_a-zA-Z][a-zA-Z0-9_-]*$": {"additionalProperties": true}}' tasks.schema.json > temp_tasks.schema.json
mv temp_tasks.schema.json tasks.schema.json


# Create the json schema for zarf.yaml
go run main.go zarf internal gen-config-schema > zarf.schema.json

# Adds pattern properties to all definitions to allow for yaml extensions
jq '.definitions |= map_values(. + {"patternProperties": {"^x-": {}}})' zarf.schema.json > temp_zarf.schema.json
mv temp_zarf.schema.json zarf.schema.json
Loading

0 comments on commit 1bc39aa

Please sign in to comment.