1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/lib/openapi/spec/pats-schema.ts

26 lines
719 B
TypeScript
Raw Normal View History

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