kogosoftwarellc / open-api

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

[Proposal] Remove extension from typespec #782

Open yordis opened 2 years ago

yordis commented 2 years ago

Hey there, it seems that the package contained https://github.com/kogosoftwarellc/open-api/blob/939a077b7ac8c7e023dace3a85e36a1706ab0907/packages/openapi-types/index.ts#L279-L283 where some extensions are added.

Wouldn't be prudent to remove it and move the usage to the user-space code base using

type UserSpaceDocument = OpenAPI.Document<{
    'x-express-openapi-additional-middleware'?: (
      | ((request: any, response: any, next: any) => Promise<void>)
      | ((request: any, response: any, next: any) => void)
    )[];
    'x-express-openapi-validation-strict'?: boolean;
}>;

Cheers,