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 31024a4 commit 8e80dec
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/core/definitions/serialization_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -350,5 +350,28 @@ void main() {
);
}
});

test("AceSecurityScheme", () async {
final aceSecuritySchemeJson = {
"scheme": "ace:ACESecurityScheme",
"as": "https://example.org",
"audience": "foobar",
"scopes": ["foo", "bar"],
"cnonce": true,
};

final parsedFields = {"scheme"};

final aceSecurityScheme = AceSecurityScheme.fromJson(
aceSecuritySchemeJson,
PrefixMapping(),
parsedFields,
);

expect(
aceSecuritySchemeJson,
aceSecurityScheme.toJson(),
);
});
});
}

0 comments on commit 8e80dec

Please sign in to comment.