1010
1111import { Device } from './device' ;
1212
13- import { Any , Link , Property as PropertySchema , PropertyValueType } from './schema' ;
13+ import { Any , PropertyForm , Property as PropertySchema , PropertyValueType } from './schema' ;
1414
1515import assert from 'assert' ;
1616
@@ -45,7 +45,7 @@ export class Property<T extends Any> {
4545
4646 private multipleOf ?: number ;
4747
48- private links : Link [ ] ;
48+ private forms : PropertyForm [ ] ;
4949
5050 private fireAndForget = false ;
5151
@@ -78,7 +78,7 @@ export class Property<T extends Any> {
7878 this . enum = propertyDescr . enum ;
7979 this . readOnly = propertyDescr . readOnly ;
8080 this . multipleOf = propertyDescr . multipleOf ;
81- this . links = propertyDescr . links ?? [ ] ;
81+ this . forms = propertyDescr . forms ?? [ ] ;
8282 }
8383
8484 /**
@@ -99,7 +99,7 @@ export class Property<T extends Any> {
9999 enum : this . enum ,
100100 readOnly : this . readOnly ,
101101 multipleOf : this . multipleOf ,
102- links : this . links ,
102+ forms : this . forms ,
103103 } ;
104104 }
105105
@@ -119,7 +119,7 @@ export class Property<T extends Any> {
119119 enum : this . enum ,
120120 readOnly : this . readOnly ,
121121 multipleOf : this . multipleOf ,
122- links : this . links ,
122+ forms : this . forms ,
123123 } ;
124124 }
125125
@@ -321,11 +321,11 @@ export class Property<T extends Any> {
321321 this . multipleOf = value ;
322322 }
323323
324- getLinks ( ) : Link [ ] {
325- return this . links ;
324+ getForms ( ) : PropertyForm [ ] {
325+ return this . forms ;
326326 }
327327
328- setLinks ( value : Link [ ] ) : void {
329- this . links = value ;
328+ setForms ( value : PropertyForm [ ] ) : void {
329+ this . forms = value ;
330330 }
331331}
0 commit comments