diff --git a/README.md b/README.md index e9295d2..cd5b4e2 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,5 @@ ![Pipeline](https://github.com/pb33f/libopenapi/workflows/Build/badge.svg) [![codecov](https://codecov.io/gh/pb33f/libopenapi/branch/main/graph/badge.svg?)](https://codecov.io/gh/pb33f/libopenap) -[![Go Report Card](https://goreportcard.com/badge/github.com/pb33f/libopenapi)](https://goreportcard.com/report/github.com/pb33f/libopenap) A place for up to date, modern golang OpenAPI models and utilities. diff --git a/datamodel/model_utils_test.go b/datamodel/model_utils_test.go index bd06957..ac41c66 100644 --- a/datamodel/model_utils_test.go +++ b/datamodel/model_utils_test.go @@ -130,6 +130,10 @@ func TestExtractSpecInfo_OpenAPI3(t *testing.T) { assert.Nil(t, e) assert.Equal(t, utils.OpenApi3, r.SpecType) assert.Equal(t, "3.0.1", r.Version) + + <-r.JsonParsingChannel + assert.Greater(t, len(*r.SpecJSONBytes), 0) + } func TestExtractSpecInfo_OpenAPIWat(t *testing.T) {