Skip to content

Commit

Permalink
Update NcPropertyDescriptor (#35)
Browse files Browse the repository at this point in the history
to make "isConstant" nullable and modify its description
  • Loading branch information
cristian-recoseanu authored Jul 4, 2023
1 parent 0e50eb8 commit 502383d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/src/NCModel/Core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ export class NcPropertyDescriptor extends NcDescriptor
public isNullable: boolean;
public isSequence: boolean;
public isDeprecated: boolean;
public isConstant: boolean;
public isConstant: boolean | null;
public constraints: NcParameterConstraints | null;

constructor(
Expand Down Expand Up @@ -859,7 +859,7 @@ export class NcPropertyDescriptor extends NcDescriptor
new NcFieldDescriptor("isNullable", "NcBoolean", false, false, null, "TRUE iff property is nullable"),
new NcFieldDescriptor("isSequence", "NcBoolean", false, false, null, "TRUE iff property is a sequence"),
new NcFieldDescriptor("isDeprecated", "NcBoolean", false, false, null, "TRUE iff property is marked as deprecated"),
new NcFieldDescriptor("isConstant", "NcBoolean", false, false, null, "TRUE iff property is readonly and constant (its value is never expected to change)"),
new NcFieldDescriptor("isConstant", "NcBoolean", true, false, null, "Optional flag which indicates if the property is readonly and constant (the device has no means to change the value)"),
new NcFieldDescriptor("constraints", "NcParameterConstraints", true, false, null, "Optional constraints on top of the underlying data type")
], "NcDescriptor", null, "Descriptor of a class property");

Expand Down

0 comments on commit 502383d

Please sign in to comment.