Skip to content

Support omitzero tags in optionalfields linter #376

Support omitzero tags in optionalfields linter

Support omitzero tags in optionalfields linter #376

Triggered via pull request July 18, 2025 15:27
Status Failure
Total duration 1m 11s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

go.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Test
unexpected diagnostic: field PointerStruct is optional and should have the omitzero tag
Test
unexpected diagnostic: field PointerStructWithRequiredFromAnotherFile is optional and should have the omitzero tag
Test
unexpected diagnostic: field PointerStructWithRequiredFields is optional and should have the omitzero tag
Test
unexpected diagnostic: field PointerStructWithOptionalFields is optional and should have the omitzero tag
Test
diagnostic "field StructWithRequiredFieldsFromAnotherFile is optional and should have the omitzero tag" does not match pattern `field StructWithRequiredFieldsFromAnotherFile is optional and should be a pointer`
Test
diagnostic "field StructWithRequiredFields is optional and should have the omitzero tag" does not match pattern `field StructWithRequiredFields is optional and should be a pointer`
Test
diagnostic "field StructWithMinPropertiesOnStruct is optional and should have the omitzero tag" does not match pattern `field StructWithMinPropertiesOnStruct is optional and should be a pointer`
Test
diagnostic "field StructWithMinProperties is optional and should have the omitzero tag" does not match pattern `field StructWithMinProperties is optional and should be a pointer`
Test
diagnostic "field StructWithOptionalFields is optional and should have the omitzero tag" does not match pattern `field StructWithOptionalFields is optional and should be a pointer` or `field StructWithOptionalFields is optional and has a valid zero value \(\{\}\), but the validation is not complete \(e.g. min properties/adding required fields\). The field should be a pointer to allow the zero value to be set. If the zero value is not a valid use case, complete the validation and remove the pointer.`
Test
unexpected diagnostic: field PointerStruct is optional and should have the omitzero tag