2022-09-16 09:54:27 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
import { patSchema } from './pat-schema';
|
|
|
|
|
|
|
|
export const patsSchema = {
|
|
|
|
$id: '#/components/schemas/patsSchema',
|
|
|
|
type: 'object',
|
2023-05-11 09:11:17 +02:00
|
|
|
description:
|
|
|
|
'Contains a collection of [Personal Access Tokens](https://docs.getunleash.io/how-to/how-to-create-personal-access-tokens).',
|
2022-09-16 09:54:27 +02:00
|
|
|
properties: {
|
|
|
|
pats: {
|
|
|
|
type: 'array',
|
|
|
|
items: {
|
|
|
|
$ref: '#/components/schemas/patSchema',
|
|
|
|
},
|
2023-05-11 09:11:17 +02:00
|
|
|
description: 'A collection of Personal Access Tokens',
|
2022-09-16 09:54:27 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
schemas: {
|
|
|
|
patSchema,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
export type PatsSchema = FromSchema<typeof patsSchema>;
|