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/feature-search-query-parameters.ts

29 lines
722 B
TypeScript
Raw Normal View History

import { FromQueryParams } from '../util/from-query-params';
export const featureSearchQueryParameters = [
{
name: 'query',
schema: {
default: '',
type: 'string' as const,
example: 'feature_a',
},
description: 'The search query for the feature or tag',
in: 'query',
},
{
name: 'projectId',
schema: {
default: '',
type: 'string' as const,
example: 'default',
},
description: 'Id of the project where search is performed',
in: 'query',
},
] as const;
export type FeatureSearchQueryParameters = FromQueryParams<
typeof featureSearchQueryParameters
>;