(schemas openapi3.Schemas, in string, requiredFieldnames []string, visitedSchemas map[*openapi3.SchemaRef]bool)
| 176 | } |
| 177 | |
| 178 | func (p OpenApiParser) parseSchemas(schemas openapi3.Schemas, in string, requiredFieldnames []string, visitedSchemas map[*openapi3.SchemaRef]bool) []Parameter { |
| 179 | result := []Parameter{} |
| 180 | for fieldName, schemaRef := range schemas { |
| 181 | parsed := p.parseSchema(fieldName, schemaRef, in, requiredFieldnames, visitedSchemas) |
| 182 | if parsed != nil { |
| 183 | result = append(result, *parsed) |
| 184 | } |
| 185 | } |
| 186 | return result |
| 187 | } |
| 188 | |
| 189 | func (p OpenApiParser) getDefaultValue(schema *openapi3.Schema) interface{} { |
| 190 | if schema.Default != nil { |
no test coverage detected