diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2ab80257..2b268b83 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,6 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.56.2 + version: v1.57.2 - run: go test -coverprofile=coverage.txt -covermode=atomic ./... - uses: codecov/codecov-action@v1 diff --git a/registry.go b/registry.go index 989654d8..6f008882 100644 --- a/registry.go +++ b/registry.go @@ -137,7 +137,7 @@ func (r *mapRegistry) Map() map[string]*Schema { } func (r *mapRegistry) MarshalJSON() ([]byte, error) { - return json.Marshal(r.schemas) + return json.Marshal(r.schemas) //nolint:musttag } func (r *mapRegistry) MarshalYAML() (interface{}, error) { diff --git a/validate_test.go b/validate_test.go index 1a87e54e..735a2f9b 100644 --- a/validate_test.go +++ b/validate_test.go @@ -1289,7 +1289,7 @@ func TestValidate(t *testing.T) { errs := mapTo(res.Errors, func(e error) string { return e.(*huma.ErrorDetail).Message }) - schemaJSON, _ := json.MarshalIndent(registry.Map(), "", " ") + schemaJSON, _ := json.MarshalIndent(registry.Map(), "", " ") //nolint: musttag for _, err := range test.errs { assert.Contains(t, errs, err, string(schemaJSON)) }