@@ -30,14 +31,15 @@
+ (change)="onCheck($event)" [attr.data-automation-id]="'json-schema-editor-required'">
-
+
@@ -49,72 +51,73 @@
+ [hierarchy]="hierarchy | async" [(ngModel)]="value.$ref" (change)="onReferenceChanges($event)"
+ [attr.data-automation-id]="'json-schema-editor-reference'">
-
-
-
-
-
-
-
-
settings
+ *ngIf="compositionIndex === -1" (click)="onRemoveNode()" [disabled]="blockedNode" [attr.data-automation-id]="'json-schema-editor-remove-node-btn'">
delete
- -1" (click)="onRemoveChild(key,compositionIndex)">
delete
@@ -128,7 +131,8 @@
(nameChanges)="onNameChanges($event)" (propertyDeleted)="onPropertyDeleted($event)"
[required]="value | requiredPipe : properties[i].key"
[lastChild]="lastTypeNotEmpty === 'object' && i === properties.length -1"
- [hierarchy]="hierarchy">
+ [hierarchy]="hierarchy"
+ [attr.data-automation-id]="'property_' + (depth+1) + '_' + i">
@@ -137,7 +141,8 @@
+ [lastChild]="lastTypeNotEmpty === 'array'" [hierarchy]="hierarchy"
+ [attr.data-automation-id]="'array' + (depth+1)">
@@ -147,7 +152,8 @@
(requiredChanges)="onRequiredChanges($event)" (nameChanges)="onNameChanges($event)"
(childrenDeleted)="onChildrenDeleted($event)" [blockedNode]="true" [compositionIndex]="i"
[lastChild]="lastTypeNotEmpty === 'allOf' && i === value.allOf.length -1"
- (changes)="onChanges()" [hierarchy]="hierarchy">
+ (changes)="onChanges()" [hierarchy]="hierarchy"
+ [attr.data-automation-id]="'allOf_' + (depth+1) + '_' + i">
@@ -157,7 +163,8 @@
(requiredChanges)="onRequiredChanges($event)" (nameChanges)="onNameChanges($event)"
(childrenDeleted)="onChildrenDeleted($event)" [blockedNode]="true" [compositionIndex]="i"
[lastChild]="lastTypeNotEmpty === 'anyOf' && i === value.anyOf.length -1"
- (changes)="onChanges()" [hierarchy]="hierarchy">
+ (changes)="onChanges()" [hierarchy]="hierarchy"
+ [attr.data-automation-id]="'anyOf_' + (depth+1) + '_' + i">
@@ -167,7 +174,8 @@
(requiredChanges)="onRequiredChanges($event)" (nameChanges)="onNameChanges($event)"
(childrenDeleted)="onChildrenDeleted($event)" [blockedNode]="true" [compositionIndex]="i"
[lastChild]="lastTypeNotEmpty === 'oneOf' && i === value.oneOf.length -1"
- (changes)="onChanges()" [hierarchy]="hierarchy">
+ (changes)="onChanges()" [hierarchy]="hierarchy"
+ [attr.data-automation-id]="'oneOf_' + (depth+1) + '_' + i">
@@ -202,7 +210,8 @@
+ [lastChild]="i === definitions.length -1" [displayRequired]="false" [hierarchy]="hierarchy"
+ [attr.data-automation-id]="'definition_' + (depth+1) + '_' + i">
diff --git a/projects/modeling-shared/sdk/src/lib/variables/properties-viewer/property-type-dialog/property-type-dialog.component.html b/projects/modeling-shared/sdk/src/lib/variables/properties-viewer/property-type-dialog/property-type-dialog.component.html
index 4124e7aef..1db56d4f1 100644
--- a/projects/modeling-shared/sdk/src/lib/variables/properties-viewer/property-type-dialog/property-type-dialog.component.html
+++ b/projects/modeling-shared/sdk/src/lib/variables/properties-viewer/property-type-dialog/property-type-dialog.component.html
@@ -1,7 +1,7 @@
{{'SDK.PROPERTY_TYPE_SELECTOR.EDIT_MODEL' | translate}}
-
+