66 lines
2.1 KiB
Go
66 lines
2.1 KiB
Go
|
package swagger
|
||
|
|
||
|
const (
|
||
|
tagHeader = "header"
|
||
|
tagPath = "path"
|
||
|
tagForm = "form"
|
||
|
tagJson = "json"
|
||
|
defFlag = "default="
|
||
|
enumFlag = "options="
|
||
|
rangeFlag = "range="
|
||
|
exampleFlag = "example="
|
||
|
optionalFlag = "optional"
|
||
|
|
||
|
paramsInHeader = "header"
|
||
|
paramsInPath = "path"
|
||
|
paramsInQuery = "query"
|
||
|
paramsInBody = "body"
|
||
|
paramsInForm = "formData"
|
||
|
|
||
|
swaggerTypeInteger = "integer"
|
||
|
swaggerTypeNumber = "number"
|
||
|
swaggerTypeString = "string"
|
||
|
swaggerTypeBoolean = "boolean"
|
||
|
swaggerTypeArray = "array"
|
||
|
swaggerTypeObject = "object"
|
||
|
|
||
|
swaggerVersion = "2.0"
|
||
|
applicationJson = "application/json"
|
||
|
applicationForm = "application/x-www-form-urlencoded"
|
||
|
schemeHttps = "https"
|
||
|
defaultBasePath = "/"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
propertyKeyUseDefinitions = "useDefinitions"
|
||
|
propertyKeyExternalDocsDescription = "externalDocsDescription"
|
||
|
propertyKeyExternalDocsURL = "externalDocsURL"
|
||
|
propertyKeyTitle = "title"
|
||
|
propertyKeyTermsOfService = "termsOfService"
|
||
|
propertyKeyDescription = "description"
|
||
|
propertyKeyVersion = "version"
|
||
|
propertyKeyContactName = "contactName"
|
||
|
propertyKeyContactURL = "contactURL"
|
||
|
propertyKeyContactEmail = "contactEmail"
|
||
|
propertyKeyLicenseName = "licenseName"
|
||
|
propertyKeyLicenseURL = "licenseURL"
|
||
|
propertyKeyProduces = "produces"
|
||
|
propertyKeyConsumes = "consumes"
|
||
|
propertyKeySchemes = "schemes"
|
||
|
propertyKeyTags = "tags"
|
||
|
propertyKeySummary = "summary"
|
||
|
propertyKeyGroup = "group"
|
||
|
propertyKeyOperationId = "operationId"
|
||
|
propertyKeyDeprecated = "deprecated"
|
||
|
propertyKeyPrefix = "prefix"
|
||
|
propertyKeyAuthType = "authType"
|
||
|
propertyKeyHost = "host"
|
||
|
propertyKeyBasePath = "basePath"
|
||
|
propertyKeyWrapCodeMsg = "wrapCodeMsg"
|
||
|
propertyKeyBizCodeEnumDescription = "bizCodeEnumDescription"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
defaultValueOfPropertyUseDefinition = false
|
||
|
)
|