(schema *openapi3.Schema)
| 199 | } |
| 200 | |
| 201 | func (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 | |
| 210 | func (p OpenApiParser) getPropertiesSchemas(schema *openapi3.Schema) openapi3.Schemas { |
| 211 | result := openapi3.Schemas{} |
no outgoing calls
no test coverage detected