Simplified naming of Json Schemas
RENAME
src/assets/server/rest/v1/schemas/connections/connection-create-req.json
src/assets/server/rest/v1/schemas/connections/connection-create.json
RENAME
src/assets/server/rest/v1/schemas/tenant/tenant-create-req-super-admin.json
src/assets/server/rest/v1/schemas/tenant/tenant-create.json
RENAME
src/assets/server/rest/v1/schemas/tenant/tenant-delete-req-super-admin.json
src/assets/server/rest/v1/schemas/tenant/tenant-delete.json
RENAME
src/assets/server/rest/v1/schemas/tenant/tenant-get-logo-req-super-admin.json
src/assets/server/rest/v1/schemas/tenant/tenant-get-logo.json
RENAME
src/assets/server/rest/v1/schemas/tenant/tenant-get-req-super-admin.json
src/assets/server/rest/v1/schemas/tenant/tenant-get.json
RENAME
src/assets/server/rest/v1/schemas/tenant/tenant-update-req-super-admin.json
src/assets/server/rest/v1/schemas/tenant/tenant-update.json
RENAME
src/assets/server/rest/v1/schemas/tenant/tenants-get-req-super-admin.json
src/assets/server/rest/v1/schemas/tenant/tenants-get.json
MODIFY
src/server/rest/v1/validator/ConnectionValidator.ts
src/server/rest/v1/validator/ConnectionValidator.ts
@@ -8,7 +8,7 @@ export default class ConnectionValidator extends SchemaValidator {
private constructor() {
super('ConnectionValidator');
- this.connectionCreation = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/connections/connection-create-req.json`, 'utf8'));
+ this.connectionCreation = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/connections/connection-create.json`, 'utf8'));
}
public static getInstance(): ConnectionValidator {

MODIFY
src/server/rest/v1/validator/TenantValidation.ts
src/server/rest/v1/validator/TenantValidation.ts
@@ -20,12 +20,12 @@ export default class TenantValidator extends SchemaValidator {
private constructor() {
super('TenantValidator');
- this.tenantCreateReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenant-create-req-super-admin.json`, 'utf8'));
- this.tenantUpdateReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenant-update-req-super-admin.json`, 'utf8'));
- this.tenantDeleteReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenant-delete-req-super-admin.json`, 'utf8'));
- this.tenantGetReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenant-get-req-super-admin.json`, 'utf8'));
- this.tenantsGetReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenants-get-req-super-admin.json`, 'utf8'));
- this.tenantGetLogoReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenant-get-logo-req-super-admin.json`, 'utf8'));
+ this.tenantCreateReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenant-create.json`, 'utf8'));
+ this.tenantUpdateReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenant-update.json`, 'utf8'));
+ this.tenantDeleteReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenant-delete.json`, 'utf8'));
+ this.tenantGetReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenant-get.json`, 'utf8'));
+ this.tenantsGetReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenants-get.json`, 'utf8'));
+ this.tenantGetLogoReqSuperAdmin = JSON.parse(fs.readFileSync(`${global.appRoot}/assets/server/rest/v1/schemas/tenant/tenant-get-logo.json`, 'utf8'));
}
public static getInstance(): TenantValidator {

Simplified naming of Json Schemas