1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/src/lib/openapi/spec/client-features-query-schema.ts
andreas-unleash e875e67d24
open api implementation - client features controller (#1745)
* open api implementation - client features controller

* open api implementation - client features controller

* bug fix

* test fix

* PR comments

* OAS for client-api metrics.ts

* Refactoring

* Refactoring

* bug fix

* fix PR comments

* PR comment

* PR comment
2022-06-30 12:54:14 +03:00

40 lines
896 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const clientFeaturesQuerySchema = {
$id: '#/components/schemas/clientFeaturesQuerySchema',
type: 'object',
required: [],
additionalProperties: false,
properties: {
tag: {
type: 'array',
items: {
type: 'array',
items: {
type: 'string',
},
},
},
project: {
type: 'array',
items: {
type: 'string',
},
},
namePrefix: {
type: 'string',
},
environment: {
type: 'string',
},
inlineSegmentConstraints: {
type: 'boolean',
},
},
components: {},
} as const;
export type ClientFeaturesQuerySchema = FromSchema<
typeof clientFeaturesQuerySchema
>;