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

Method getDefaultValue

parser/openapi_parser.go:189–199  ·  view source on GitHub ↗
(schema *openapi3.Schema)

Source from the content-addressed store, hash-verified

187}
188
189func (p OpenApiParser) getDefaultValue(schema *openapi3.Schema) interface{} {
190 if schema.Default != nil {
191 return schema.Default
192 }
193 for _, s := range schema.AllOf {
194 if s.Value.Default != nil {
195 return s.Value.Default
196 }
197 }
198 return nil
199}
200
201func (p OpenApiParser) getAllowedValues(schema *openapi3.Schema) []interface{} {
202 result := []interface{}{}

Callers 2

parseSchemaMethod · 0.95
parseParameterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected