Skip to content

Commit

Permalink
Update blueprint metadata json schema for DisplayVariable_AlternateDe…
Browse files Browse the repository at this point in the history
…fault value
  • Loading branch information
q2w committed Oct 18, 2024
1 parent 70fdd57 commit 61c1693
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions cli/bpmetadata/schema/gcp-blueprint-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -856,9 +856,7 @@
}
]
},
"value": {
"$ref": "#/$defs/Value"
}
"value": true
},
"additionalProperties": false,
"type": "object"
Expand Down
4 changes: 4 additions & 0 deletions cli/bpmetadata/schema/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ func GenerateSchema() ([]byte, error) {
if defExists {
oDef.Properties.Set("type", jsonschema.TrueSchema)
}
altDefaultDef, defExists := s.Definitions["DisplayVariable_AlternateDefault"]
if defExists {
altDefaultDef.Properties.Set("value", jsonschema.TrueSchema)
}

sData, err := json.MarshalIndent(s, "", " ")
if err != nil {
Expand Down

0 comments on commit 61c1693

Please sign in to comment.