0

I have define the following validators:

@Validations(
    customValidators = {
        @CustomValidator(fieldName="campaignId", type="long", key="campaign.required", parameters={@ValidationParameter(name="min", value="1")}),
        @CustomValidator(fieldName="campaignType", type="long", key="campaignType.required", parameters={@ValidationParameter(name="min", value="1")})
    }
)

i need to skip validation only for the "campaignType" parameter on one action. I tried with @SkipValidation but its skips both parameters .

4

0 回答 0