ca.gc.aafc.dina.testsupport.specs.ValidationRestrictionOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dina-test-support Show documentation
Show all versions of dina-test-support Show documentation
Base DINA API test support package
package ca.gc.aafc.dina.testsupport.specs;
import lombok.Builder;
import lombok.Getter;
import java.util.Collections;
import java.util.Set;
/**
* Options used to specify if additional fields are allowed and to specify which fields may remain missing.
* Used with open api {@link RestrictiveFieldValidator}
*/
@Builder
@Getter
public class ValidationRestrictionOptions {
/**
* Allows no additional fields and no fields may be missing.
*/
public static final ValidationRestrictionOptions FULL_RESTRICTIONS = ValidationRestrictionOptions.builder()
.allowAdditionalFields(false)
.allowableMissingFields(Collections.emptySet())
.build();
private final boolean allowAdditionalFields;
private final Set allowableMissingFields;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy