Documentation ¶
Index ¶
- type Array
- type Boolean
- func (o Boolean) Example(withoutReadOnly bool) interface{}
- func (o Boolean) ExampleString() string
- func (o Boolean) Format() string
- func (o Boolean) Key() string
- func (o Boolean) MarshalJSON() ([]byte, error)
- func (o Boolean) Raw() *schema.Schema
- func (o Boolean) ReadOnly() bool
- func (o Boolean) Title() string
- type ByKey
- type ByTitle
- type Context
- type Header
- type Integer
- func (o Integer) Example(withoutReadOnly bool) interface{}
- func (o Integer) ExampleString() string
- func (o Integer) Format() string
- func (o Integer) Key() string
- func (o Integer) MarshalJSON() ([]byte, error)
- func (o Integer) Raw() *schema.Schema
- func (o Integer) ReadOnly() bool
- func (o Integer) Title() string
- type ItemSpec
- type Link
- type LinkList
- type Number
- func (o Number) Example(withoutReadOnly bool) interface{}
- func (o Number) ExampleString() string
- func (o Number) Format() string
- func (o Number) Key() string
- func (o Number) MarshalJSON() ([]byte, error)
- func (o Number) Raw() *schema.Schema
- func (o Number) ReadOnly() bool
- func (o Number) Title() string
- type Object
- func (o Object) Example(withoutReadOnly bool) interface{}
- func (o Object) ExampleString() string
- func (o Object) Format() string
- func (o Object) Key() string
- func (o Object) MarshalJSON() ([]byte, error)
- func (o Object) Raw() *schema.Schema
- func (o Object) ReadOnly() bool
- func (o Object) Title() string
- type Root
- type Schema
- type SchemasByKey
- type String
- func (o String) Example(withoutReadOnly bool) interface{}
- func (o String) ExampleString() string
- func (o String) Format() string
- func (o String) Key() string
- func (s String) MarshalJSON() ([]byte, error)
- func (o String) Raw() *schema.Schema
- func (o String) ReadOnly() bool
- func (o String) Title() string
- type Undefined
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct { *schema.Schema NativeType string ColumnName string ColumnType string Type string Name string Private bool Properties []Schema Reference string Validations []validations.Validation Item Schema Items *ItemSpec // contains filtered or unexported fields }
func (Array) ExampleString ¶
func (Array) MarshalJSON ¶
type Boolean ¶
type Boolean struct { *schema.Schema NativeType string ColumnName string ColumnType string Type string Name string Private bool Validations []validations.Validation // contains filtered or unexported fields }
func NewBoolean ¶
func (Boolean) ExampleString ¶
func (Boolean) MarshalJSON ¶
type Context ¶
func (*Context) AddValidation ¶
func (ctx *Context) AddValidation(v validations.Validation)
func (*Context) RequiredValidations ¶
type Integer ¶
type Integer struct { *schema.Schema NativeType string ColumnName string ColumnType string Type string Name string Private bool Validations []validations.Validation // contains filtered or unexported fields }
func NewInteger ¶
func (Integer) ExampleString ¶
func (Integer) MarshalJSON ¶
type Link ¶
type Link struct { hschema.Link Description string URL *url.URL Title string Method string UrlParameters []Schema Schema Schema TargetSchema Schema }
func (Link) MarshalJSON ¶
func (Link) ReqHeaders ¶
func (Link) ResHeaders ¶
func (Link) ResReasonPhrase ¶
func (Link) ResStatusCode ¶
type Number ¶
type Number struct { *schema.Schema NativeType string ColumnName string ColumnType string Type string Name string Private bool Validations []validations.Validation // contains filtered or unexported fields }
func (Number) ExampleString ¶
func (Number) MarshalJSON ¶
type Object ¶
type Object struct { *schema.Schema NativeType string TableName string ColumnName string ColumnType string Type string Name string Private bool Required []string Reference string Validations []validations.Validation Properties []Schema // contains filtered or unexported fields }
func (Object) ExampleString ¶
func (Object) MarshalJSON ¶
type Root ¶
type Root struct { *hschema.HyperSchema URL *url.URL Links LinkList Definitions []Schema Properties []Schema Objects []*Object Arrays []*Array Strings []*String Numbers []*Number Integers []*Integer Booleans []*Boolean RequiredValidations []string }
func (Root) MarshalJSON ¶
type SchemasByKey ¶
type SchemasByKey []Schema
func (SchemasByKey) Len ¶
func (a SchemasByKey) Len() int
func (SchemasByKey) Less ¶
func (a SchemasByKey) Less(i, j int) bool
func (SchemasByKey) Swap ¶
func (a SchemasByKey) Swap(i, j int)
type String ¶
type String struct { *schema.Schema NativeType string ColumnName string ColumnType string Type string Name string Private bool Validations []validations.Validation // contains filtered or unexported fields }
func (String) ExampleString ¶
func (String) MarshalJSON ¶
type Undefined ¶
type Undefined struct { Schema *schema.Schema NativeType string ColumnName string ColumnType string Type string Name string Private bool Validations []validations.Validation // contains filtered or unexported fields }
func NewUndefined ¶
func (Undefined) Description ¶
func (Undefined) ExampleString ¶
Click to show internal directories.
Click to hide internal directories.