initial work

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
Signed-off-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com>
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
Aramis
2024-01-21 10:35:02 -05:00
committed by aramissennyeydd
parent 16b8fb9dc6
commit ddf9e55c3a
28 changed files with 668 additions and 18 deletions
@@ -31,5 +31,10 @@ export type {
PathParameters,
} from './utility';
export type { ApiRouter } from './router';
export type {
RequestMatcherByModelAndPath,
RequestMatcherByModelAndPathParams,
} from './types/express';
export type { PathTemplate } from './types/common';
export { createValidatedOpenApiRouter, getOpenApiSpecRoute } from './stub';
export { wrapInOpenApiTestServer, wrapServer } from './testUtils';
@@ -100,3 +100,29 @@ export interface DocRequestMatcher<
>
): T;
}
export type RequestMatcherByModelAndPath<
PathParams,
QueryParams,
RequestBody,
ResponseBody,
> = core.RequestHandler<
PathParams,
ResponseBody,
RequestBody,
QueryParams,
Record<string, string>
>;
export type RequestMatcherByModelAndPathParams<
PathParams,
QueryParams,
RequestBody,
ResponseBody,
> = core.RequestHandlerParams<
PathParams,
ResponseBody,
RequestBody,
QueryParams,
Record<string, string>
>;