# Functions
AsArray returns the type underlying array if any, nil otherwise.
AsMap returns the type underlying map if any, nil otherwise.
AsObject returns the type underlying object if any, nil otherwise.
CanonicalIdentifier returns the result type identifier sans suffix which is what the DSL uses to store and lookup result types.
CreateTempFile creates a temporary file and writes the given content.
Diff returns a diff between s1 and s2.
Dup creates a copy the given data type.
DupAtt creates a copy of the given attribute.
DupMappedAtt creates a deep copy of ma.
DupRequirement creates a copy of the given security requirement.
DupScheme creates a copy of the given scheme expression.
Equal compares the types recursively and returns true if they are equal.
ExtractHTTPWildcards returns the names of the wildcards that appear in a HTTP path.
IsArray returns true if the data type is an array.
IsMap returns true if the data type is a map.
IsObject returns true if the data type is an object.
IsPrimitive returns true if the data type is a primitive type.
NewAPIExpr initializes an API expression.
NewEmptyMappedAttributeExpr creates an empty mapped attribute expression.
NewLength returns an int that validates the generator attribute length validations if any.
NewMappedAttributeExpr instantiates a mapped attribute expression for the given attribute.
NewRandom returns a random value generator seeded from the given string value.
NewResultTypeExpr creates a result type definition but does not execute the DSL.
Project creates a ResultTypeExpr containing the fields defined in the view expression of m named after the view argument.
QualifiedTypeName returns the qualified type name for the given data type.
RunDSL returns the DSL root resulting from running the given DSL.
RunInvalidDSL returns the error resulting from running the given DSL.
TaggedAttribute returns the name of the child attribute of a with the given tag if a is an object.
WalkMappedAttr iterates over the mapped attributes.
# Constants
Any is the type for an arbitrary JSON value (interface{} in Go).
AnyKind represents an unknown type.
APIKeyKind means "apiKey" security scheme.
ArrayKind represents a JSON array.
AuthorizationCodeFlowKind identifies a OAuth2 authorization code flow.
BasicAuthKind means "basic" security scheme.
BidirectionalStreamKind represents client and server sending payload and result respectively via a stream.
Boolean is the type for a JSON boolean.
BooleanKind represents a boolean.
Bytes is the type for binary data.
BytesKind represent a series of bytes (binary data).
ClientCredentialsFlowKind identifies a OAuth Client Credentials flow.
ClientStreamKind represents client sends a streaming payload to method.
DefaultView is the name of the default result type view.
Float32 is the type for a 32-bit floating number.
Float32Kind represents a 32-bit floating number.
Float64 is the type for a 64-bit floating number.
Float64Kind represents a 64-bit floating number.
FormatCIDR describes RFC4632 and RFC4291 CIDR notation IP address values.
FormatDate describes RFC3339 date values.
FormatDateTime describes RFC3339 date time values.
FormatEmail describes RFC5322 email addresses.
FormatHostname describes RFC1035 Internet hostnames.
FormatIP describes RFC2373 IPv4 or IPv6 address values.
FormatIPv4 describes RFC2373 IPv4 address values.
FormatIPv6 describes RFC2373 IPv6 address values.
FormatJSON describes JSON text.
FormatMAC describes IEEE 802 MAC-48, EUI-48 or EUI-64 MAC address values.
FormatRegexp describes regular expression syntax accepted by RE2.
FormatRFC1123 describes RFC1123 date time values.
FormatURI describes RFC3986 URI values.
FormatUUID describes RFC4122 UUID values.
ImplicitFlowKind identifiers a OAuth2 implicit flow.
Int is the type for a signed integer.
Int32 is the type for a signed 32-bit integer.
Int32Kind represents a signed 32-bit integer.
Int64 is the type for a signed 64-bit integer.
Int64Kind represents a signed 64-bit integer.
IntKind represents a signed integer.
JWTKind means an "JWT" security scheme, with support for TokenPath and Scopes.
MapKind represents a JSON object where the keys are not known in advance.
NoKind means to have no security for this endpoint.
NoStreamKind represents no payload or result stream in method.
OAuth2Kind identifies a "OAuth2" security scheme.
ObjectKind represents a JSON object.
PasswordFlowKind identifies a Resource Owner Password flow.
ResultTypeKind represents a result type.
ServerStreamKind represents server sends a streaming result from method.
RFC 7231, 6.3.3.
RFC 5842, 7.1.
RFC 7231, 6.6.3.
RFC 7231, 6.5.1.
RFC 7231, 6.5.8.
RFC 7231, 6.2.1.
RFC 7231, 6.3.2.
RFC 7231, 6.5.14.
RFC 4918, 11.4.
RFC 7231, 6.5.3.
RFC 7231, 6.4.3.
RFC 7231, 6.6.5.
RFC 7231, 6.5.9.
RFC 7231, 6.6.6.
RFC 3229, 10.4.1.
RFC 4918, 11.5.
RFC 7231, 6.6.1.
RFC 7231, 6.5.10.
RFC 4918, 11.3.
RFC 5842, 7.2.
RFC 7231, 6.5.5.
RFC 7231, 6.4.2.
RFC 7231, 6.4.1.
RFC 4918, 11.1.
RFC 6585, 6.
RFC 7231, 6.3.5.
RFC 7231, 6.3.4.
RFC 7231, 6.5.6.
RFC 2774, 7.
RFC 7231, 6.5.4.
RFC 7231, 6.6.2.
RFC 7232, 4.1.
RFC 7231, 6.3.1.
RFC 7233, 4.1.
RFC 7231, 6.5.2.
RFC 7538, 3.
RFC 7232, 4.2.
RFC 6585, 3.
RFC 2518, 10.1.
RFC 7235, 3.2.
RFC 7233, 4.4.
RFC 7231, 6.5.11.
RFC 6585, 5.
RFC 7231, 6.5.7.
RFC 7231, 6.5.12.
RFC 7231, 6.3.6.
RFC 7231, 6.4.4.
RFC 7231, 6.6.4.
RFC 7231, 6.2.2.
RFC 7168, 2.3.3.
RFC 7231, 6.4.7.
RFC 6585, 4.
RFC 7235, 3.1.
RFC 7725, 3.
RFC 4918, 11.2.
RFC 7231, 6.5.13.
RFC 7231, 6.5.15.
RFC 7231, 6.4.5.
RFC 2295, 8.1.
String is the type for a JSON string.
StringKind represents a JSON string.
UInt is the type for an unsigned integer.
UInt32 is the type for an unsigned 32-bit integer.
UInt32Kind represents an unsigned 32-bit integer.
UInt64 is the type for an unsigned 64-bit integer.
UInt64Kind represents an unsigned 64-bit integer.
UIntKind represents an unsigned integer.
UserTypeKind represents a user type.
# Variables
Empty represents empty values.
ErrorResult is the built-in result type for error responses.
ErrorResultIdentifier is the result type identifier used for error responses.
HTTPWildcardRegex is the regular expression used to capture path parameters.
Root is the root object built by the DSL.
# Structs
Random generates consistent random values of different types given a seed.
# Type aliases
FlowKind is a type of OAuth2 flow.
SchemeKind is a type of security scheme.