mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(openapi): explicit object-component registration via createNamedObject (#1183)
Signed-off-by: Hampus Kraft <[email protected]>
This commit is contained in:
1 parent
6e87f6e3d1
commit
6d537ef0db
6 files changed
+87
-33
No files matched your search
@@ -13,6 +13,7 @@ import {createBase64StringType} from '@fluxer/schema/src/primitives/FileValidato
|
||||
import {
|
||||
createBitflagInt32Type,
|
||||
createInt32EnumType,
|
||||
createNamedObject,
|
||||
createNamedStringLiteralUnion,
|
||||
createStringType,
|
||||
Int32Type,
|
||||
@@ -324,7 +325,7 @@ export const OAuth2ApplicationsMeResponse = z.union([ApplicationListResponse, Ap
|
||||
|
||||
export type OAuth2ApplicationsMeResponse = z.infer<typeof OAuth2ApplicationsMeResponse>;
|
||||
|
||||
const OAuth2AuthorizationResponse = z.object({
|
||||
const OAuth2AuthorizationResponse = createNamedObject('OAuth2AuthorizationResponse', {
|
||||
application: z
|
||||
.object({
|
||||
id: SnowflakeStringType.describe('The unique identifier of the application'),
|
||||
|
||||
Reference in new issue
Block a user