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/addon-parameter-schema.ts

34 lines
784 B
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const addonParameterSchema = {
$id: '#/components/schemas/addonParameterSchema',
type: 'object',
required: ['name', 'displayName', 'type', 'required', 'sensitive'],
properties: {
name: {
type: 'string',
},
displayName: {
type: 'string',
},
type: {
type: 'string',
},
description: {
type: 'string',
},
placeholder: {
type: 'string',
},
required: {
type: 'boolean',
},
sensitive: {
type: 'boolean',
},
},
components: {},
} as const;
export type AddonParameterSchema = FromSchema<typeof addonParameterSchema>;