From c2b329f55f02f1c252a811fe9098a553c9bd279c Mon Sep 17 00:00:00 2001 From: Jonathan Knowles Date: Tue, 14 May 2024 03:47:51 +0000 Subject: [PATCH] Change name of field from `enc` to `method`. --- lib/api/src/Cardano/Wallet/Api/Types.hs | 2 +- .../Cardano/Wallet/Api/ApiEncryptMetadata.json | 16 ++++++++-------- .../test/unit/Cardano/Wallet/Api/TypesSpec.hs | 16 ++++++++-------- specifications/api/swagger.yaml | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/api/src/Cardano/Wallet/Api/Types.hs b/lib/api/src/Cardano/Wallet/Api/Types.hs index 38635e4c086..5628da6c507 100644 --- a/lib/api/src/Cardano/Wallet/Api/Types.hs +++ b/lib/api/src/Cardano/Wallet/Api/Types.hs @@ -1245,7 +1245,7 @@ data ApiEncryptMetadataMethod = Basic data ApiEncryptMetadata = ApiEncryptMetadata { passphrase :: ApiT (Passphrase "lenient") - , enc :: Maybe ApiEncryptMetadataMethod + , method :: Maybe ApiEncryptMetadataMethod } deriving (Eq, Generic, Show) deriving (FromJSON, ToJSON) via DefaultRecord ApiEncryptMetadata diff --git a/lib/unit/test/data/Cardano/Wallet/Api/ApiEncryptMetadata.json b/lib/unit/test/data/Cardano/Wallet/Api/ApiEncryptMetadata.json index f52b889b5c8..686da503a5d 100644 --- a/lib/unit/test/data/Cardano/Wallet/Api/ApiEncryptMetadata.json +++ b/lib/unit/test/data/Cardano/Wallet/Api/ApiEncryptMetadata.json @@ -1,41 +1,41 @@ { "samples": [ { - "enc": "basic", + "method": "basic", "passphrase": "䬲&6~X#𱸴q𢮆r`⸅𫖨Pb.`G+ib!эHeC&w󠄐𩭚b)k|Q.𦽌J5\\:_~bx𲌬$W!𱫥hk}3?SyT^sSb*I6X렇H녔nO?}l_ T𣅞kOFCbdJ2%,jh=t嗺?nN(HE𢭰POⒹw҇CWk%𣵚]> j໘m\"_jWf#S𣀩𡯁[a𛲝𭟴" }, { "passphrase": "五>q芠N^1;䐰*𱓞/纋;" }, { - "enc": "basic", + "method": "basic", "passphrase": "WyLhQ4)Q2𩚬`V)cly$,+𠀖s{+qW12𠻉Xc㳬𢅮V*,m𬓄bw{4𨗍-S𬥈P(bGKRpqba&U3b鵄𦅫iu𰓦W#wMwA|)7L@쀇C괨v8𣨧D萀𦳶O쑀/Zў-忆JdF~;`;\"$𱯯8𬱽Ai~]nmk/䟷𱹗.CE迢'h5'K(𰓙" }, { - "enc": "basic", + "method": "basic", "passphrase": ")24vcAoFr?~=^UZ뿳[!Km&1\\\"e𡣫A~#wiRria.gN𮷉ak0d`gCI]t\\wXe@u64pp𡸨繴W#{j+-8/BeXB/0꼲" }, { - "enc": "basic", + "method": "basic", "passphrase": "m𭠬d𭦞$:䤠a]n;D2엦\"|3lUTurl]i?LX,sb3G烽fvC)1~D64𬼹$乔>h圹$V+9U|F𰰓Y🃫^/<𔑍SJ^#X_呅=^ap\"ZA+vgyD/^mc<6`𩆺𭑗⪮?Q')]5gh隡I\"XZ#p𐚮C^+𝙻\\F?鋌alen9X;𡸵DLYxTQYnd𞢗cU}]6\"𗒼7y3\"5#㚏=C4?X6r4i-&_乮𮜣剶>𢢉)R@+C뮲䗘_{䔒qT~_𮢈𐦆&穐𣯸jLe{&X?𣣌~7G~d,S𦚈9zmwhYLP.NWip2p\"RG💔[Q쵎" }, { "passphrase": "5G+Y+qg17]j쎄𨲳D8aul𨞁HRk\"I𢈤xVi𲊔<𞄢;^l𘩲6PXlN#7𱗪c/?a1t]u𰤫𫓠&N\"𱑠}xnD튏𪱚𘄨!>𭪵'6]yP쁹𘧻D𠗹TQS𢦁sf a~>Au*tSNA𡄹F_﹈<)=T}pY5p'\\md`*dxv𗇁*d&Y䲗nsbn}/LX^f칳n]8tjYMjv_b킋f^H>XN^r𤴸z𡎓-q\"*B𭕛-jgl疋oC뇭_|v2R𮭴𢱤|]CGl祌?.[𗚝:𫢄핕F1J𰸾\\𭛝~,됟j\\𫮹W$ebWW!𦦯kA" }, { - "enc": "basic", + "method": "basic", "passphrase": "b@$+},&m6💑y𧼭f_fGHk+z xqISX𬋼