Skip to content

Commit c4117ea

Browse files
committed
Fix bugs in OpenAPI 3.1 type
1 parent 1f38dd3 commit c4117ea

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

openapi-3-1/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ type Link = {
237237
parameters?: Record<string, string>;
238238
requestBody?: Json;
239239
description?: string;
240-
body?: Server;
240+
server?: Server;
241241
};
242242

243243
type Header = {
@@ -274,10 +274,10 @@ type SecurityScheme = {
274274
};
275275

276276
type OauthFlows = {
277-
implicit: Implicit;
278-
password: Password;
279-
clientCredentials: ClientCredentials;
280-
authorizationCode: AuthorizationCode;
277+
implicit?: Implicit;
278+
password?: Password;
279+
clientCredentials?: ClientCredentials;
280+
authorizationCode?: AuthorizationCode;
281281
};
282282

283283
type Implicit = {

0 commit comments

Comments
 (0)