MCPcopy Create free account
hub / github.com/UiPath/uipathcli / getType

Method getType

parser/openapi_parser.go:140–145  ·  view source on GitHub ↗
(schemaRef *openapi3.SchemaRef)

Source from the content-addressed store, hash-verified

138}
139
140func (p OpenApiParser) getType(schemaRef *openapi3.SchemaRef) string {
141 if schemaRef == nil {
142 return ParameterTypeString
143 }
144 return p.getSchemaType(*schemaRef.Value)
145}
146
147func (p OpenApiParser) parseSchema(fieldName string, schemaRef *openapi3.SchemaRef, in string, requiredFieldnames []string, visitedSchemas map[*openapi3.SchemaRef]bool) *Parameter {
148 _, visited := visitedSchemas[schemaRef]

Callers 2

parseSchemaMethod · 0.95
parseParameterMethod · 0.95

Calls 1

getSchemaTypeMethod · 0.95

Tested by

no test coverage detected