acacode / acacode/swagger-typescript-api

RawRouteInfo seems to have no typed deprecated field

Open
#321 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
TypeScript
Stars
4.1k
Forks
436
PR merge metrics
No merged PRs in 30d

Description

Hi 👋, thank you for your super cool library it helped ma a lot

I noticed that field deprecated is used in code but I could not find it in types [here](https://github.com/acacode/swagger-typescript-api/blob/0cbcbba33273d9ff309852e98b173821c8af6e44/index.d.ts#L240-L253).

```typescript
export type RawRouteInfo = {
operationId: string;
method: string;
route: string;
moduleName: string;
responsesTypes: RequestResponseInfo[];
description?: string;
tags?: string[];
summary?: string;
responses?: import("swagger-schema-official").Spec["responses"];
produces?: string[];
requestBody?: object;
consumes?: string[];
// Should add
deprecated?: boolean;
};
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.