Skip to content

Commit

Permalink
fix: upgrade linter
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Apr 10, 2024
1 parent 900dc8f commit 79de147
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 79de147

Please sign in to comment.