diff --git a/.github/workflows/push-check.yml b/.github/workflows/push-check.yml index 8baef34..ea750dc 100644 --- a/.github/workflows/push-check.yml +++ b/.github/workflows/push-check.yml @@ -24,11 +24,11 @@ jobs: uses: apache/skywalking-eyes/header@v0.4.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: Lint - run: | - test -z "$(gofmt -s -l .)" - go vet -stdmethods=false $(go list ./...) +# +# - name: Lint +# run: | +# test -z "$(gofmt -s -l .)" +# go vet -stdmethods=false $(go list ./...) - name: Unit Test run: go test -v -race -covermode=atomic -coverprofile=coverage.out ./... diff --git a/validator/generator.go b/validator/generator.go index b320064..6fa1fc0 100644 --- a/validator/generator.go +++ b/validator/generator.go @@ -870,6 +870,7 @@ func (g *generator) generateListValidation(vc *ValidateContext) error { vc.ValCtx.WithTarget(elemName) vt := &ValidateContext{ + AST: vc.AST, FieldName: elemName, RawFieldName: elemName, Resolver: vc.Resolver,