diff options
Diffstat (limited to 'tpl/openapi/openapi3/openapi3.go')
-rw-r--r-- | tpl/openapi/openapi3/openapi3.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tpl/openapi/openapi3/openapi3.go b/tpl/openapi/openapi3/openapi3.go index 9b84e9fbe..31d56289e 100644 --- a/tpl/openapi/openapi3/openapi3.go +++ b/tpl/openapi/openapi3/openapi3.go @@ -11,6 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Package openapi3 provides functions for generating OpenAPI v3 (Swagger) documentation. package openapi3 import ( @@ -54,6 +55,7 @@ type OpenAPIDocument struct { *kopenapi3.T } +// Unmarshal unmarshals the given resource into an OpenAPI 3 document. func (ns *Namespace) Unmarshal(r resource.UnmarshableResource) (*OpenAPIDocument, error) { key := r.Key() if key == "" { |