Skip to content

Commit 6b5f815

Browse files
committed
wip
1 parent d69d731 commit 6b5f815

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

scripts/gen-client.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,14 @@ const AccessTokenScopeSchema = z.union([
8686

8787
const OAuth2Scope = z.union([AccessTokenScopeSchema, z.literal(["web:mod"])]);
8888

89-
const OAuth2Schema = z.tuple([z.object({ OAuth2: z.array(OAuth2Scope) })]);
89+
const OAuth2Schema = z.object({ OAuth2: z.array(OAuth2Scope) });
9090

9191
const SecuritySchema = z.union([
9292
z.array(AccessTokenScopeSchema),
93-
OAuth2Schema,
94-
z.strictObject({}),
93+
z.union([
94+
z.tuple([OAuth2Schema]),
95+
z.tuple([z.strictObject({}), OAuth2Schema]),
96+
]),
9597
]);
9698

9799
const StringJsonRef = z

specs/tags/broadcasts/broadcast-broadcastTournamentId.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ get:
66
tags:
77
- Broadcasts
88
security:
9+
- {}
910
- OAuth2: ["study:read"]
1011
parameters:
1112
- in: path

0 commit comments

Comments
 (0)