mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
66452e2860
* open-api addon controller * bug fixes * bug fixes * resolve merge conflict * bug fix * bug fix * bug fix * PR comments * PR comments * Resolve merge conflics * Resolve merge conflics * bug and tests
34 lines
784 B
TypeScript
34 lines
784 B
TypeScript
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>;
|