1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-03-09 00:18:26 +01:00
unleash.unleash/src/lib/openapi/spec/parameters-schema.ts
Tymoteusz Czech 1b99b700d6
OpenAPI - feature environment endpoints (#4166)
## About the changes
Fix OpenAPI definitions for endpoint

`/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}`
and similar.
2023-07-07 14:31:03 +02:00

14 lines
369 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const parametersSchema = {
$id: '#/components/schemas/parametersSchema',
type: 'object',
description: 'A list of parameters for a strategy',
additionalProperties: {
type: 'string',
},
components: {},
} as const;
export type ParametersSchema = FromSchema<typeof parametersSchema>;