Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentType ¶
type ContentType struct { Key string `storm:"id" json:"key" xml:"key" form:"key" valid:"required,alphanum"` Validation string `json:"validation" xml:"validation" form:"validation" valid:"required,json"` }
ContentType explains the content type object
func (ContentType) Schema ¶
func (c ContentType) Schema() *gojsonschema.Schema
Schema returns the prepared json schema
func (*ContentType) SetSchema ¶
func (c *ContentType) SetSchema(s *gojsonschema.Schema)
SetSchema adds the schema to cache
Click to show internal directories.
Click to hide internal directories.