Skip to content

Commit

Permalink
fix: add missing parsing of @type at the TD level
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Dec 23, 2023
1 parent 215bec3 commit e921b65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/definitions/thing_description.dart
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ class ThingDescription {
final Set<String> parsedFields = {};

context.addAll(json.parseContext(prefixMapping, parsedFields));
atType = json.parseArrayField('@type', parsedFields);
title = json.parseRequiredField<String>('title', parsedFields);
titles.addAll(json.parseMapField<String>('titles', parsedFields) ?? {});
description = json.parseField<String>('description', parsedFields);
Expand Down

0 comments on commit e921b65

Please sign in to comment.