(schema *openapi3.Schema)
| 187 | } |
| 188 | |
| 189 | func (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 | |
| 201 | func (p OpenApiParser) getAllowedValues(schema *openapi3.Schema) []interface{} { |
| 202 | result := []interface{}{} |
no outgoing calls
no test coverage detected