Skip to content

Commit

Permalink
Add deprecated field in Schema (#242)
Browse files Browse the repository at this point in the history
Change-Id: If750ff340ae29cf24a6ad870071502c9327485ca
  • Loading branch information
Tevic committed Aug 6, 2020
1 parent 8459893 commit 2392e46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openapi3/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type Schema struct {
WriteOnly bool `json:"writeOnly,omitempty" yaml:"writeOnly,omitempty"`
AllowEmptyValue bool `json:"allowEmptyValue,omitempty" yaml:"allowEmptyValue,omitempty"`
XML interface{} `json:"xml,omitempty" yaml:"xml,omitempty"`
Deprecated bool `json:"deprecated,omitempty" yaml:"deprecated,omitempty"`

// Number
Min *float64 `json:"minimum,omitempty" yaml:"minimum,omitempty"`
Expand Down

0 comments on commit 2392e46

Please sign in to comment.