Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Roaa Sakr <[email protected]>
  • Loading branch information
romoh committed Jan 8, 2025
1 parent 7cde1d7 commit f4738a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion toolkit/tools/imagecustomizerapi/disksize.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (s *DiskSize) UnmarshalJSON(data []byte) error {
func (DiskSize) JSONSchema() *jsonschema.Schema {
return &jsonschema.Schema{
Type: "string",
Pattern: `^\d+[KMGT]?$`,
Pattern: `^\d+[KMGT]$`,
}
}

Expand Down
2 changes: 1 addition & 1 deletion toolkit/tools/imagecustomizerapi/partitionsize.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (s *PartitionSize) UnmarshalJSON(data []byte) error {
func (PartitionSize) JSONSchema() *jsonschema.Schema {
return &jsonschema.Schema{
Type: "string",
Pattern: `^\d+[KMGT]?$|^grow`,
Pattern: `^(\d+[KMGT]$|grow)$`,
}
}

Expand Down
2 changes: 1 addition & 1 deletion toolkit/tools/imagecustomizerapi/uki.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

type Uki struct {
Kernels UkiKernels `yaml:"kernels"`
Kernels UkiKernels `yaml:"kernels" json:"kernels"`
}

func (u *Uki) IsValid() error {
Expand Down

0 comments on commit f4738a7

Please sign in to comment.