mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
a792594e98
* refactor: add OpenAPI schema to simple-password-provider controller * finish implementation after merge * refactor: address PR comments
20 lines
450 B
TypeScript
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>;
|