Skip to content

Refactor openapi validation gen to avoid mutation inside GetValueType() #1318

Refactor openapi validation gen to avoid mutation inside GetValueType()

Refactor openapi validation gen to avoid mutation inside GetValueType() #1318

Triggered via pull request April 13, 2024 12:56
Status Failure
Total duration 43s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 7 warnings
lint: pkg/schema/type.go#L86
field `validations` is unused (unused)
lint
issues found
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v2, golangci/golangci-lint-action@v3.4.0. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint: pkg/validations/validate.go#L111
exported: exported method NodeValidation.HasSimpleMinLength should have comment or be unexported (revive)
lint: pkg/validations/validate.go#L124
exported: exported method NodeValidation.HasSimpleMaxLength should have comment or be unexported (revive)
lint: pkg/validations/validate.go#L137
exported: exported method NodeValidation.HasSimpleMin should have comment or be unexported (revive)
lint: pkg/validations/validate.go#L150
exported: exported method NodeValidation.HasSimpleMax should have comment or be unexported (revive)
lint: pkg/validations/validate.go#L163
exported: exported method NodeValidation.HasSimpleOneOf should have comment or be unexported (revive)