Skip to content

Commit

Permalink
fixup! feat!: implement proper serialization logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jun 4, 2024
1 parent 13f604c commit 0bafbab
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/core/definitions/serialization_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,29 @@ void main() {
action.toJson(),
);
});

test("DataSchemas", () async {
final dataSchemaJson = {
"@type": [
"foo",
"bar",
],
"properties": {
"baz": {
"type": "string",
},
},
};

final dataSchema = DataSchema.fromJson(
dataSchemaJson,
PrefixMapping(),
);

expect(
dataSchemaJson,
dataSchema.toJson(),
);
});
});
}

0 comments on commit 0bafbab

Please sign in to comment.