Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadMessageDefinitions ¶
func LoadMessageDefinitions(message *descriptor.DescriptorProto) *extensionpb.Model
func LoadMethodDefinitions ¶
func LoadMethodDefinitions(field *descriptor.MethodDescriptorProto) *extensionpb.Operation
Types ¶
type FieldDefinitions ¶
type FieldDefinitions struct {
// contains filtered or unexported fields
}
func LoadFieldDefinitions ¶
func LoadFieldDefinitions(field *descriptor.FieldDescriptorProto, message *descriptor.DescriptorProto, schema *protogen.Message) (*FieldDefinitions, error)
func (*FieldDefinitions) Model ¶
func (d *FieldDefinitions) Model() *extensionpb.FieldModel
func (*FieldDefinitions) Response ¶
func (d *FieldDefinitions) Response() *extensionpb.FieldResponse
func (*FieldDefinitions) Validation ¶
func (d *FieldDefinitions) Validation() *Validation
type Validation ¶
type Validation struct { Validation *extensionpb.FieldValidation // contains filtered or unexported fields }
func (*Validation) BuildValidationCall ¶
func (v *Validation) BuildValidationCall(receiver string) error
BuildValidationCall is a helper call to build the field validation call, that can be used inside a source code, after it is completely loaded. It requires a receiver argument that can be used if a conditional validation was configured for it.
func (*Validation) GetValidator ¶
func (v *Validation) GetValidator() string
GetValidator returns a string with the Go source code of how the validator for this object must be validatorCalled.
func (*Validation) NeedsOzzoIsPackage ¶
func (v *Validation) NeedsOzzoIsPackage() bool
NeedsOzzoIsPackage returns if the field requires the package "ozzo/is".
func (*Validation) Required ¶
func (v *Validation) Required() bool
Required returns if the field is set to be required or not.
Click to show internal directories.
Click to hide internal directories.