Documentation ¶
Index ¶
Constants ¶
View Source
const EnumValueSeparator = ","
Variables ¶
View Source
var AuthorizationHeaderSchema = &oas.SchemaObject{
ID: "Authorization",
FieldName: "AuthorizationFieldName",
Type: "string",
Description: "Authorization Description",
Example: "Bearer 123",
}
View Source
var ContentTypeHeaderSchema = &oas.SchemaObject{
ID: "ContentType",
FieldName: "ContentTypeFieldName",
Type: "string",
Description: "Content Type Description",
Example: "json",
}
View Source
var VersionHeaderSchema = &oas.SchemaObject{
ID: "Version",
FieldName: "VersionFieldName",
Type: "int",
Description: "Version Description",
Example: "101",
}
Functions ¶
func GetSchemaObject ¶
func GetSchemaObject() *oas.SchemaObject
Types ¶
type Parser ¶
type Parser interface { GetPkgAst(pkgPath string) (map[string]*ast.Package, error) RegisterType(pkgPath, pkgName, typeName string, astExpr ast.Expr) (string, error) ParseSchemaObject(pkgPath, pkgName, typeName string, astExpr ast.Expr) (*SchemaObject, error) }
func SetupUpSchemaParseMocks ¶
func SetupUpSchemaParseMocks(schemaObject *oas.SchemaObject, err error) Parser
Source Files ¶
Click to show internal directories.
Click to hide internal directories.