Skip to content

Commit

Permalink
fixup! feat: improve DataSchemaValue handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Dec 28, 2023
1 parent 30579c0 commit b68b66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/core/content_serdes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class ContentSerdes {
/// A [dataSchema] can be passed for validating the result. If the media type
/// specified in the [content] is not supported, its body is converted to an
/// UTF-8 string.
Future<scripting_api.DataSchemaValue?> contentToValue(
Future<Object?> contentToValue(
Content content,
DataSchema? dataSchema,
) async {
Expand All @@ -215,6 +215,6 @@ class ContentSerdes {
if (value != null) {
_validateValue(value, dataSchema);
}
return value;
return value?.value;
}
}

0 comments on commit b68b66e

Please sign in to comment.