Skip to content

Commit

Permalink
refactor: added required flags for JSON schema generation
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Feb 5, 2024
1 parent 3151853 commit 8ad14e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (

type Template struct {
Structures map[string][]Variable `json:"structures,omitempty"`
Variables []Variable `json:"variables,omitempty"`
Variables []Variable `json:"variables,omitempty" jsonschema:"required"`

Template string `json:"template"`
Template string `json:"template" jsonschema:"required"`
}

type Variable struct {
Name string `json:"name"`
Type string `json:"type"`
Name string `json:"name" jsonschema:"required"`
Type string `json:"type" jsonschema:"required"`
IsArray bool `json:"array,omitempty"`
Description string `json:"description,omitempty"`

Expand Down

0 comments on commit 8ad14e3

Please sign in to comment.