From 2c128aba366c81723b47bf026adff25b9f259d9b Mon Sep 17 00:00:00 2001 From: Matteo Pietro Dazzi Date: Sun, 12 Dec 2021 20:04:16 +0100 Subject: [PATCH] Insert produces field (#461) --- .gitignore | 1 + openapi2/openapi2.go | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index caf95473b..1a3ec37f1 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ .idea /openapi3/load_with_go_embed_test.go +.vscode \ No newline at end of file diff --git a/openapi2/openapi2.go b/openapi2/openapi2.go index 4d2714d56..0d8c07228 100644 --- a/openapi2/openapi2.go +++ b/openapi2/openapi2.go @@ -17,6 +17,7 @@ type T struct { ExternalDocs *openapi3.ExternalDocs `json:"externalDocs,omitempty" yaml:"externalDocs,omitempty"` Schemes []string `json:"schemes,omitempty" yaml:"schemes,omitempty"` Consumes []string `json:"consumes,omitempty" yaml:"consumes,omitempty"` + Produces []string `json:"produces,omitempty" yaml:"produces,omitempty"` Host string `json:"host,omitempty" yaml:"host,omitempty"` BasePath string `json:"basePath,omitempty" yaml:"basePath,omitempty"` Paths map[string]*PathItem `json:"paths,omitempty" yaml:"paths,omitempty"`