(root: UnknownRecord)
| 370 | } |
| 371 | |
| 372 | function getSecuritySchemes(root: UnknownRecord): UnknownRecord { |
| 373 | if (isRecord(root.components) && isRecord(root.components.securitySchemes)) |
| 374 | return root.components.securitySchemes |
| 375 | if (isRecord(root.securityDefinitions)) |
| 376 | return root.securityDefinitions |
| 377 | return {} |
| 378 | } |
| 379 | |
| 380 | function parseSecurity( |
| 381 | root: UnknownRecord, |
no test coverage detected