kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
895 stars 237 forks source link

openapi-types: Add safe extension access. #702

Closed jarruda closed 3 years ago

jarruda commented 3 years ago

This change adds an index signature to the openapi-types package's OperationObject to allow access to OpenAPI extensions.

Additionally, undefined was added to the index signature on PathsObject to ensure safe access when strictNullChecks is enabled.