(at *expr.AttributeExpr)
| 330 | } |
| 331 | |
| 332 | func itemsFromExpr(at *expr.AttributeExpr) *Items { |
| 333 | itemType, itemFormat := openAPITypeFormat(at) |
| 334 | items := &Items{ |
| 335 | Type: itemType, |
| 336 | Format: itemFormat, |
| 337 | } |
| 338 | initAttributeValidations(at, items) |
| 339 | if expr.IsArray(at.Type) { |
| 340 | items.Items = itemsFromExpr(expr.AsArray(at.Type).ElemType) |
| 341 | } |
| 342 | return items |
| 343 | } |
| 344 | |
| 345 | func responseSpecFromExpr(_ *V2, root *expr.RootExpr, r *expr.HTTPResponseExpr, typeNamePrefix string) *Response { |
| 346 | var schema *openapi.Schema |
no test coverage detected