From a3f4306ace68c9722f4d4702747716cd69b66d85 Mon Sep 17 00:00:00 2001 From: Tevic Date: Thu, 6 Aug 2020 16:15:11 +0800 Subject: [PATCH] Add deprecated field in Schema Change-Id: If750ff340ae29cf24a6ad870071502c9327485ca --- openapi3/schema.go | 1 + 1 file changed, 1 insertion(+) diff --git a/openapi3/schema.go b/openapi3/schema.go index fba9e342a..edb35c40c 100644 --- a/openapi3/schema.go +++ b/openapi3/schema.go @@ -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"`