Documentation
¶
Overview ¶
Package metadata defines the structured metadata.
Index ¶
- func AndValidation(rules []interface{}) *compositeValidation
- func GreaterThanValidation(value interface{}, equals bool) *comparisonValidationRule
- func LessThanValidation(value interface{}, equals bool) *comparisonValidationRule
- func StringLengthValidation(min, max int) *valueLengthValidationRule
- type DataSource
- type DataSourceValue
- type Field
- type FieldType
- type Validation
- type ValidationType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AndValidation ¶
func AndValidation(rules []interface{}) *compositeValidation
func GreaterThanValidation ¶
func GreaterThanValidation(value interface{}, equals bool) *comparisonValidationRule
func LessThanValidation ¶
func LessThanValidation(value interface{}, equals bool) *comparisonValidationRule
func StringLengthValidation ¶
func StringLengthValidation(min, max int) *valueLengthValidationRule
Types ¶
type DataSource ¶
type DataSource struct {
Values []DataSourceValue `json:"values"`
}
type DataSourceValue ¶
type Field ¶
type Field struct { Type FieldType `json:"type"` ExternalID string `json:"external_id"` Label string `json:"label"` Mandatory bool `json:"mandatory"` DefaultValue interface{} `json:"default_value,omitempty"` Validation interface{} `json:"validation,omitempty"` DataSource DataSource `json:"datasource,omitempty"` }
type Validation ¶
type Validation interface{}
type ValidationType ¶
type ValidationType string
Click to show internal directories.
Click to hide internal directories.