1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00
unleash.unleash/src/lib/openapi/spec/group-user-model-schema.ts
sellinjaanus 726674ea3e
UX additions to groups SSO syncing (#2200)
* Initial commit

* Fix snapshot

* Fixes

* Small fix

Co-authored-by: sjaanus <sellinjaanus@gmail.com>
2022-10-20 10:47:19 +03:00

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>;