mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
* Initial commit * Fix snapshot * Fixes * Small fix Co-authored-by: sjaanus <sellinjaanus@gmail.com>
30 lines
715 B
TypeScript
30 lines
715 B
TypeScript
import { FromSchema } from 'json-schema-to-ts';
|
|
import { userSchema } from './user-schema';
|
|
|
|
export const groupUserModelSchema = {
|
|
$id: '#/components/schemas/groupUserModelSchema',
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
required: ['user'],
|
|
properties: {
|
|
joinedAt: {
|
|
type: 'string',
|
|
format: 'date-time',
|
|
},
|
|
createdBy: {
|
|
type: 'string',
|
|
nullable: true,
|
|
},
|
|
user: {
|
|
$ref: '#/components/schemas/userSchema',
|
|
},
|
|
},
|
|
components: {
|
|
schemas: {
|
|
userSchema,
|
|
},
|
|
},
|
|
} as const;
|
|
|
|
export type GroupUserModelSchema = FromSchema<typeof groupUserModelSchema>;
|