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/environments-project-schema.ts
Christopher Kolstad 512efe0809
docs: Flesh out openapi for tag: Environments (#3440)
### What
This fleshes out the documentation for actions tagged with Environments.

Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
2023-04-04 15:45:34 +02:00

31 lines
832 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
import { environmentProjectSchema } from './environment-project-schema';
export const environmentsProjectSchema = {
$id: '#/components/schemas/environmentsProjectSchema',
type: 'object',
additionalProperties: false,
required: ['version', 'environments'],
description: 'Environments defined for a given project',
properties: {
version: {
type: 'integer',
},
environments: {
type: 'array',
items: {
$ref: '#/components/schemas/environmentProjectSchema',
},
},
},
components: {
schemas: {
environmentProjectSchema,
},
},
} as const;
export type EnvironmentsProjectSchema = FromSchema<
typeof environmentsProjectSchema
>;