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

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