@opengis/fastify-table
Version:
core-plugins
66 lines (65 loc) • 1.81 kB
JavaScript
export default null;
export { accessGroupSchema, accessGroupPostSchema, accessInterfaceSchema };
const accessGroupSchema = {
params: {
type: 'object',
properties: {
id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
},
required: ['id'],
},
};
const accessInterfaceSchema = {
params: {
type: 'object',
properties: {
name: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
},
required: ['name'],
},
};
const accessGroupPostSchema = {
params: {
type: 'object',
properties: {
id: { type: 'string', pattern: '^([\\d\\w._-]+)$' },
},
required: ['id'],
},
body: {
type: 'object',
properties: {
users: {
type: 'array',
items: {
type: 'object',
properties: {
id: {
type: 'string',
pattern: '^([\\d\\w._-]+)$',
},
},
},
},
routes: {
type: 'array',
/*items: {
type: 'object',
properties: {
path: {
type: 'string',
pattern: '^([\\d\\w._-]+)$',
},
actions: {
type: 'array',
items: {
type: 'string',
enum: ['get', 'add', 'edit', 'del'],
},
},
},
},*/
},
},
},
};