feat: Add more swagger checks (#5707)

This commit is contained in:
Marcin Tojek
2023-01-13 16:47:38 +01:00
committed by GitHub
parent 54cc587dad
commit dad242a788
4 changed files with 39 additions and 2 deletions

View File

@ -18,6 +18,7 @@ func TestEndpointsDocumented(t *testing.T) {
swaggerComments, err := coderdtest.ParseSwaggerComments("..")
require.NoError(t, err, "can't parse swagger comments")
require.NotEmpty(t, swaggerComments, "swagger comments must be present")
_, _, api := coderdtest.NewWithAPI(t, nil)
coderdtest.VerifySwaggerDefinitions(t, api.APIHandler, swaggerComments)