Skip to content

Commit

Permalink
fix(data_schema.dart): fix deserialization of required field
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 7, 2024
1 parent 034aca5 commit 7b8f07c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/core/definitions/data_schema.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ class DataSchema implements Serializable {
json.parseDataSchemaArrayField("items", prefixMapping, parsedFields);
final minItems = json.parseField<int>("minItems", parsedFields);
final maxItems = json.parseField<int>("maxItems", parsedFields);
final required = json.parseField<List<String>>("required", parsedFields);
final required =
json.parseArrayField<String>("required", parsedFields: parsedFields);
final minLength = json.parseField<int>("minLength", parsedFields);
final maxLength = json.parseField<int>("maxLength", parsedFields);
final pattern = json.parseField<String>("pattern", parsedFields);
Expand Down

0 comments on commit 7b8f07c

Please sign in to comment.