diff --git a/test/core/definitions/serialization_test.dart b/test/core/definitions/serialization_test.dart index ce6516a5..3d1c413a 100644 --- a/test/core/definitions/serialization_test.dart +++ b/test/core/definitions/serialization_test.dart @@ -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(), + ); + }); }); }