2022-06-22 13:31:41 +02:00
|
|
|
import { FromSchema } from 'json-schema-to-ts';
|
|
|
|
|
2022-06-22 14:55:43 +02:00
|
|
|
export const permissionSchema = {
|
|
|
|
$id: '#/components/schemas/permissionSchema',
|
2022-06-22 13:31:41 +02:00
|
|
|
type: 'object',
|
|
|
|
additionalProperties: false,
|
2022-06-22 14:55:43 +02:00
|
|
|
required: ['permission'],
|
2022-06-22 13:31:41 +02:00
|
|
|
properties: {
|
2022-06-22 14:55:43 +02:00
|
|
|
permission: {
|
2022-06-22 13:31:41 +02:00
|
|
|
type: 'string',
|
|
|
|
},
|
2022-06-22 14:55:43 +02:00
|
|
|
project: {
|
2022-06-22 13:31:41 +02:00
|
|
|
type: 'string',
|
|
|
|
},
|
2022-06-22 14:55:43 +02:00
|
|
|
environment: {
|
2022-06-22 13:31:41 +02:00
|
|
|
type: 'string',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {},
|
|
|
|
} as const;
|
|
|
|
|
2022-06-22 14:55:43 +02:00
|
|
|
export type PermissionSchema = FromSchema<typeof permissionSchema>;
|