Skip to content

Commit 2392e46

Browse files
authored
Add deprecated field in Schema (#242)
Change-Id: If750ff340ae29cf24a6ad870071502c9327485ca
1 parent 8459893 commit 2392e46

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

openapi3/schema.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ type Schema struct {
7878
WriteOnly bool `json:"writeOnly,omitempty" yaml:"writeOnly,omitempty"`
7979
AllowEmptyValue bool `json:"allowEmptyValue,omitempty" yaml:"allowEmptyValue,omitempty"`
8080
XML interface{} `json:"xml,omitempty" yaml:"xml,omitempty"`
81+
Deprecated bool `json:"deprecated,omitempty" yaml:"deprecated,omitempty"`
8182

8283
// Number
8384
Min *float64 `json:"minimum,omitempty" yaml:"minimum,omitempty"`

0 commit comments

Comments
 (0)