mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
23 lines
501 B
TypeScript
23 lines
501 B
TypeScript
|
import { FromSchema } from 'json-schema-to-ts';
|
||
|
import { patSchema } from './pat-schema';
|
||
|
|
||
|
export const patsSchema = {
|
||
|
$id: '#/components/schemas/patsSchema',
|
||
|
type: 'object',
|
||
|
properties: {
|
||
|
pats: {
|
||
|
type: 'array',
|
||
|
items: {
|
||
|
$ref: '#/components/schemas/patSchema',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
components: {
|
||
|
schemas: {
|
||
|
patSchema,
|
||
|
},
|
||
|
},
|
||
|
} as const;
|
||
|
|
||
|
export type PatsSchema = FromSchema<typeof patsSchema>;
|