scalapb.validate.validate
Members list
Type members
Classlikes
Value parameters
- skipUniqueCheck
-
not implemented yet
Attributes
- Companion
- object
- Supertypes
-
trait Updatable[FieldValidationOptions]trait GeneratedMessagetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrortrait GeneratedMessageCompanion[FieldValidationOptions]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
Value parameters
- catsTransforms
-
transform to non-empty map, list and set.
- skip
-
Set
skip
to true to avoid generating validators for this file. This option is also useful to be set a package-scoped option for third-party protos that do not come with validator classes and your messages reference them. - skipPackages
-
List of packages that are known to not have validators generated for them. Same effect as setting
skip
to true for all files in the package. This is useful when package-scoped options for that third-party package are already defined. - uniqueToSet
-
The following options inject field transformations in the proto they are defined on. In order to take effect, scalapb-validate's preprocessor need to be enabled in the same file where these options are set. Example: import "scalapb/validate.proto"; import "scalapb/scalapb.proto"; option (scalapb.options) = { scope : PACKAGE // makes the FieldTransformations available for the entire package preprocessors : [ "scalapb-validate-preprocessor" ] [scalapb.validate.file] { cats_transforms : true unique_to_set : true } } transform "repeated.unique: true" to sets.
Attributes
- Companion
- object
- Supertypes
-
trait Updatable[FileValidationOptions]trait GeneratedMessagetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrortrait GeneratedMessageCompanion[FileValidationOptions]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
Falls back on file validation options (where default exists)
Falls back on file validation options (where default exists)
Attributes
- Companion
- object
- Supertypes
-
trait Updatable[MessageValidationOptions]trait GeneratedMessagetrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrortrait GeneratedMessageCompanion[MessageValidationOptions]trait Serializableclass Objecttrait Matchableclass AnyShow all
- Self type
Attributes
- Supertypes
-
class GeneratedFileObjectclass Objecttrait Matchableclass Any
- Self type
-
ValidateProto.type