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

Method getAllowedValues

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

Source from the content-addressed store, hash-verified

199}
200
201func (p OpenApiParser) getAllowedValues(schema *openapi3.Schema) []interface{} {
202 result := []interface{}{}
203 result = append(result, schema.Enum...)
204 for _, s := range schema.AllOf {
205 result = append(result, s.Value.Enum...)
206 }
207 return result
208}
209
210func (p OpenApiParser) getPropertiesSchemas(schema *openapi3.Schema) openapi3.Schemas {
211 result := openapi3.Schemas{}

Callers 2

parseSchemaMethod · 0.95
parseParameterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected