update to support new formly versions which use JSONSchema7 type (#92)

* fix typing for compatibility with new versions of schemaform
This commit is contained in:
Thomas Gilgan
2020-06-23 14:09:21 +01:00
committed by GitHub Enterprise
parent 7606f2f86e
commit 401731a5e4
11 changed files with 38 additions and 46 deletions

View File

@@ -16,6 +16,7 @@ import { cloneDeep } from 'lodash';
import { Observable } from 'rxjs';
import { take } from 'rxjs/operators';
import { TestingDialogComponent } from '../testing/testing-dialog/testing-dialog.component';
import { JSONSchema7 } from 'json-schema';
@Component({
selector: 're-deploy-dialog',
@@ -77,7 +78,7 @@ export class DeployDialogComponent {
this.environment = this.config.environment;
}
private createDeploymentSchema(serviceName: string): string {
private createDeploymentSchema(serviceName: string): JSONSchema7 {
const depSchema = this.service.configLoader.originalSchema;
depSchema.properties[this.uiMetadata.deployment.config_array] = {};
delete depSchema.properties[this.uiMetadata.deployment.config_array];