1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/lib/openapi/spec/addon-parameter-schema.ts
andreas-unleash 66452e2860
open-api addon controller (#1721)
* 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
2022-06-22 13:49:18 +03:00

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>;