Versions in this module Expand all Collapse all v3 v3.6.3 Oct 20, 2023 Changes in this version + const Array + const Boolean + const File + const Integer + const Null + const Number + const Object + const SchemaRef + const String + var Definitions map[string]*Schema + func ExtensionsFromExpr(mdata expr.MetaExpr) map[string]interface + func GenerateResultTypeDefinition(api *expr.APIExpr, mt *expr.ResultTypeExpr, view string) + func GenerateServiceDefinition(api *expr.APIExpr, res *expr.HTTPServiceExpr) + func GenerateTypeDefinition(api *expr.APIExpr, ut *expr.UserTypeExpr) + func GenerateTypeDefinitionWithName(api *expr.APIExpr, ut *expr.UserTypeExpr, typeName string) + func MarshalJSON(v interface{}, extensions map[string]interface{}) ([]byte, error) + func MarshalYAML(v interface{}, extensions map[string]interface{}) (interface{}, error) + func ResultTypeRef(api *expr.APIExpr, mt *expr.ResultTypeExpr, view string) string + func ResultTypeRefWithPrefix(api *expr.APIExpr, mt *expr.ResultTypeExpr, view string, prefix string) string + func TagNamesFromExpr(mdatas ...expr.MetaExpr) (tagNames []string) + func ToString(val interface{}) string + func ToStringMap(val interface{}) interface + func TypeRef(api *expr.APIExpr, ut *expr.UserTypeExpr) string + func TypeRefWithPrefix(api *expr.APIExpr, ut *expr.UserTypeExpr, prefix string) string + type ExternalDocs struct + Description string + Extensions map[string]interface{} + URL string + func DocsFromExpr(docs *expr.DocsExpr, meta expr.MetaExpr) *ExternalDocs + type Link struct + Description string + EncType string + Href string + Method string + Rel string + ResultType string + Schema *Schema + TargetSchema *Schema + Title string + type Media struct + BinaryEncoding string + Type string + type Schema struct + AdditionalProperties interface{} + AnyOf []*Schema + DefaultValue interface{} + Definitions map[string]*Schema + Description string + Enum []interface{} + Example interface{} + ExclusiveMaximum *float64 + ExclusiveMinimum *float64 + Extensions map[string]interface{} + Format string + ID string + Items *Schema + Links []*Link + MaxItems *int + MaxLength *int + Maximum *float64 + Media *Media + MinItems *int + MinLength *int + Minimum *float64 + PathStart string + Pattern string + Properties map[string]*Schema + ReadOnly bool + Ref string + Required []string + Schema string + Title string + Type Type + func APISchema(api *expr.APIExpr, r *expr.RootExpr) *Schema + func AttributeTypeSchema(api *expr.APIExpr, at *expr.AttributeExpr) *Schema + func AttributeTypeSchemaWithPrefix(api *expr.APIExpr, at *expr.AttributeExpr, prefix string) *Schema + func NewSchema() *Schema + func TypeSchema(api *expr.APIExpr, t expr.DataType) *Schema + func TypeSchemaWithPrefix(api *expr.APIExpr, t expr.DataType, prefix string) *Schema + func (s *Schema) Dup() *Schema + func (s *Schema) JSON() ([]byte, error) + func (s *Schema) MarshalJSON() ([]byte, error) + func (s *Schema) MarshalYAML() (interface{}, error) + func (s *Schema) Merge(other *Schema) + type Tag struct + Description string + Extensions map[string]interface{} + ExternalDocs *ExternalDocs + Name string + func TagsFromExpr(mdata expr.MetaExpr) (tags []*Tag) + func (t Tag) MarshalJSON() ([]byte, error) + func (t Tag) MarshalYAML() (interface{}, error) + type Type string Other modules containing this package github.com/mtal3t/goa