metadevpro / openapi3-ts

TS Model & utils for creating and exposing OpenAPI 3.x contracts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong type for security fields

willshowell opened this issue Β· comments

First thank you so much for this library - it's been a big time saver! πŸ˜„

I think I've found the following bugs:

interface OpenAPIObject {
 ... 
 security: SecurityRequirementObject // should be SecurityRequirementObject[]
}

interface OperationObject {
 ...
 security: SecurityRequirementObject // same thing here: SecurityRequirementObject[]
}

Refs:

Thanks for caching it @willshowell
Added!