Documentation
¶
Index ¶
- func GenFunction(f ast.Function) string
- func GenOpRequestCode(opType string, pathUrl string, op *v3.Operation, resolve ResolveSchemaRef, ...) []byte
- func GenSchema(schemaName string, op *v3.Operation, schema *base.SchemaProxy, ...) (fileName string, content []byte)
- func GenSchema2(schemaName string, op *v3.Operation, schema *base.SchemaProxy, ...) (fileName string, content []byte)
- type PathItemResult
- type ResolveSchemaByName
- type ResolveSchemaRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenFunction ¶
func GenOpRequestCode ¶
func GenSchema ¶
func GenSchema( schemaName string, op *v3.Operation, schema *base.SchemaProxy, resolve ResolveSchemaRef, ) (fileName string, content []byte)
func GenSchema2 ¶
func GenSchema2( schemaName string, op *v3.Operation, schema *base.SchemaProxy, resolve ResolveSchemaByName, ) (fileName string, content []byte)
Types ¶
type PathItemResult ¶
func GenGetRequest ¶
func GenGetRequest(pathUrl string, op *v3.Operation, resolve ResolveSchemaRef) *PathItemResult
func GenPatchRequest ¶
func GenPatchRequest(pathUrl string, op *v3.Operation, resolve ResolveSchemaRef) *PathItemResult
func GenPathItem ¶
func GenPathItem(pathUrl string, pathItem *v3.PathItem, resolve ResolveSchemaRef) []*PathItemResult
type ResolveSchemaByName ¶
type ResolveSchemaRef ¶
type ResolveSchemaRef = func(op *v3.Operation, schema *base.SchemaProxy) string
Resolves a Schema Ref and returns back the canonical name
Click to show internal directories.
Click to hide internal directories.