mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
18 lines
429 B
TypeScript
18 lines
429 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
import { userSchema } from './user-schema';
|
||
|
|
||
|
export const usersSearchSchema = {
|
||
|
$id: '#/components/schemas/usersSearchSchema',
|
||
|
type: 'array',
|
||
|
items: {
|
||
|
$ref: '#/components/schemas/userSchema',
|
||
|
},
|
||
|
components: {
|
||
|
schemas: {
|
||
|
userSchema,
|
||
|
},
|
||
|
},
|
||
|
} as const;
|
||
|
|
||
|
export type UsersSearchSchema = FromSchema<typeof usersSearchSchema>;
|