Documentation ¶
Index ¶
Constants ¶
View Source
const ( SpecParameters = "parameters" SpecRequestBody = "requestBody" )
View Source
const ( TypeString SchemaType = "string" TypeNumber SchemaType = "number" TypeInteger SchemaType = "integer" TypeBoolean SchemaType = "boolean" TypeArray SchemaType = "array" TypeObject SchemaType = "object" FormatDate SchemaFormat = "date" FormatDateTime SchemaFormat = "date-time" FormatPassword SchemaFormat = "password" FormatByte SchemaFormat = "byte" FormatBinary SchemaFormat = "binary" FormatEmail SchemaFormat = "email" FormatUuid SchemaFormat = "uuid" FormatUri SchemaFormat = "uri" FormatHostname SchemaFormat = "hostname" FormatIPv4 SchemaFormat = "ipv4" FormatIPv6 SchemaFormat = "ipv6" )
Variables ¶
View Source
var SchemaFormatToRule = map[SchemaFormat]RuleFormat{ FormatDate: "ISO8601", FormatDateTime: "ISO8601", FormatEmail: "email", FormatUuid: "uuid", FormatUri: "url", FormatIPv4: "ip_v4", FormatIPv6: "ip_v6", }
View Source
var SchemaTypeToRule = map[SchemaType]RuleType{ TypeString: "string", TypeNumber: "numeric", TypeInteger: "integer", TypeBoolean: "boolean", }
Functions ¶
Types ¶
type Parameter ¶
type RuleFormat ¶
type RuleFormat string
type RuleNumeric ¶
type RuleNumeric *float64
type SchemaFormat ¶
type SchemaFormat string
type SchemaType ¶
type SchemaType string
Click to show internal directories.
Click to hide internal directories.