@@ -7,14 +7,14 @@ import (
7
7
)
8
8
9
9
type LimaYAML struct {
10
- VMType * VMType `yaml:"vmType,omitempty" json:"vmType,omitempty"`
11
- OS * OS `yaml:"os,omitempty" json:"os,omitempty"`
12
- Arch * Arch `yaml:"arch,omitempty" json:"arch,omitempty"`
10
+ VMType * VMType `yaml:"vmType,omitempty" json:"vmType,omitempty" jsonschema:"nullable" `
11
+ OS * OS `yaml:"os,omitempty" json:"os,omitempty" jsonschema:"nullable" `
12
+ Arch * Arch `yaml:"arch,omitempty" json:"arch,omitempty" jsonschema:"nullable" `
13
13
Images []Image `yaml:"images" json:"images"` // REQUIRED
14
14
CPUType map [Arch ]string `yaml:"cpuType,omitempty" json:"cpuType,omitempty"`
15
- CPUs * int `yaml:"cpus,omitempty" json:"cpus,omitempty"`
16
- Memory * string `yaml:"memory,omitempty" json:"memory,omitempty"` // go-units.RAMInBytes
17
- Disk * string `yaml:"disk,omitempty" json:"disk,omitempty"` // go-units.RAMInBytes
15
+ CPUs * int `yaml:"cpus,omitempty" json:"cpus,omitempty" jsonschema:"nullable" `
16
+ Memory * string `yaml:"memory,omitempty" json:"memory,omitempty" jsonschema:"nullable" ` // go-units.RAMInBytes
17
+ Disk * string `yaml:"disk,omitempty" json:"disk,omitempty" jsonschema:"nullable" ` // go-units.RAMInBytes
18
18
AdditionalDisks []Disk `yaml:"additionalDisks,omitempty" json:"additionalDisks,omitempty"`
19
19
Mounts []Mount `yaml:"mounts,omitempty" json:"mounts,omitempty"`
20
20
MountType * MountType `yaml:"mountType,omitempty" json:"mountType,omitempty"`
@@ -181,7 +181,7 @@ const (
181
181
)
182
182
183
183
type Provision struct {
184
- Mode ProvisionMode `yaml:"mode" json:"mode"` // default: " system"
184
+ Mode ProvisionMode `yaml:"mode,omitempty " json:"mode,omitempty" jsonschema:"default= system"`
185
185
SkipDefaultDependencyResolution * bool `yaml:"skipDefaultDependencyResolution,omitempty" json:"skipDefaultDependencyResolution,omitempty"`
186
186
Script string `yaml:"script" json:"script"`
187
187
}
@@ -199,10 +199,10 @@ const (
199
199
)
200
200
201
201
type Probe struct {
202
- Mode ProbeMode // default: " readiness"
203
- Description string
204
- Script string
205
- Hint string
202
+ Mode ProbeMode `yaml:"mode,omitempty" json:"mode,omitempty" jsonschema:"default= readiness"`
203
+ Description string `yaml:"description,omitempty" json:"description,omitempty"`
204
+ Script string `yaml:"script,omitempty" json:"script,omitempty"`
205
+ Hint string `yaml:"hint,omitempty" json:"hint,omitempty"`
206
206
}
207
207
208
208
type Proto = string
0 commit comments