mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
31 lines
818 B
TypeScript
31 lines
818 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
import { userSchema } from './user-schema';
|
||
|
import { roleSchema } from './role-schema';
|
||
|
import { publicSignupTokenSchema } from './public-signup-token-schema';
|
||
|
|
||
|
export const publicSignupTokensSchema = {
|
||
|
$id: '#/components/schemas/publicSignupTokensSchema',
|
||
|
type: 'object',
|
||
|
additionalProperties: false,
|
||
|
required: ['tokens'],
|
||
|
properties: {
|
||
|
tokens: {
|
||
|
type: 'array',
|
||
|
items: {
|
||
|
$ref: '#/components/schemas/publicSignupTokenSchema',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
components: {
|
||
|
schemas: {
|
||
|
publicSignupTokenSchema,
|
||
|
userSchema,
|
||
|
roleSchema,
|
||
|
},
|
||
|
},
|
||
|
} as const;
|
||
|
|
||
|
export type PublicSignupTokensSchema = FromSchema<
|
||
|
typeof publicSignupTokensSchema
|
||
|
>;
|