Skip to content

Commit

Permalink
fix(property): use correct defaults for readOnly/writeOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 12, 2022
1 parent b29c4c5 commit 5f9cca3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/definitions/interaction_affordances/property.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Property extends InteractionAffordance implements DataSchema {
List<DataSchema>? oneOf;

@override
bool? readOnly;
bool? readOnly = false;

@override
String? type;
Expand All @@ -40,7 +40,8 @@ class Property extends InteractionAffordance implements DataSchema {
String? unit;

@override
bool? writeOnly;
bool? writeOnly = false;


@override
Map<String, dynamic>? rawJson;
Expand Down

0 comments on commit 5f9cca3

Please sign in to comment.