(s *openapi3.Schema)
| 374 | } |
| 375 | |
| 376 | func withoutAllOf(s *openapi3.Schema) *openapi3.Schema { |
| 377 | copied := *s |
| 378 | copied.AllOf = nil |
| 379 | return &copied |
| 380 | } |
| 381 | |
| 382 | func allowsNull(s *openapi3.Schema) bool { |
| 383 | return s.Nullable || s.Type.Includes("null") |