1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-09 00:18:00 +01:00
unleash.unleash/src/lib/openapi/spec/environment-project-schema.ts

39 lines
886 B
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const environmentProjectSchema = {
$id: '#/components/schemas/environmentProjectSchema',
type: 'object',
additionalProperties: false,
required: ['name', 'type', 'enabled'],
properties: {
name: {
type: 'string',
},
type: {
type: 'string',
},
enabled: {
type: 'boolean',
},
protected: {
type: 'boolean',
},
sortOrder: {
type: 'number',
},
projectApiTokenCount: {
type: 'number',
nullable: true,
},
projectEnabledToggleCount: {
type: 'number',
nullable: true,
},
},
components: {},
} as const;
export type EnvironmentProjectSchema = FromSchema<
typeof environmentProjectSchema
>;