We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 418f7db commit 650d82dCopy full SHA for 650d82d
cmd/limactl/genschema.go
@@ -22,6 +22,12 @@ func newGenSchemaCommand() *cobra.Command {
22
23
func genschemaAction(cmd *cobra.Command, _ []string) error {
24
schema := jsonschema.Reflect(&limayaml.LimaYAML{})
25
+ // allow Disk to be either string (name) or object (struct)
26
+ schema.Definitions["Disk"].Type = "" // was: "object"
27
+ schema.Definitions["Disk"].OneOf = []*jsonschema.Schema{
28
+ {Type: "string"},
29
+ {Type: "object"},
30
+ }
31
j, err := json.MarshalIndent(schema, "", " ")
32
if err != nil {
33
return err
0 commit comments