1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi/spec/login-schema.ts
Nuno Góis a792594e98
refactor: add OpenAPI schema to simple-password-provider controller (#1734)
* refactor: add OpenAPI schema to simple-password-provider controller

* finish implementation after merge

* refactor: address PR comments
2022-06-23 08:40:25 +01:00

20 lines
450 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const loginSchema = {
$id: '#/components/schemas/loginSchema',
type: 'object',
additionalProperties: false,
required: ['username', 'password'],
properties: {
username: {
type: 'string',
},
password: {
type: 'string',
},
},
components: {},
} as const;
export type LoginSchema = FromSchema<typeof loginSchema>;