Skip to content

Commit f80df85

Browse files
authored
Fix JSON for UTxODat (#63)
1 parent 3f37533 commit f80df85

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.github/workflows/ci-linux.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,3 @@ jobs:
4141
cabal update
4242
cabal build -j all --enable-tests
4343
cabal test all
44-
- name: check compiled scripts are consistent
45-
# git diff --quiet implies --exit-code
46-
run: |
47-
cabal run export-smart-tokens
48-
git diff --quiet

generated/openapi/schema.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,20 +179,20 @@
179179
},
180180
"UTxODat_ConwayEra_ProgrammableLogicGlobalParams": {
181181
"properties": {
182-
"atum": {
182+
"datum": {
183183
"$ref": "#/components/schemas/ProgrammableLogicGlobalParams"
184184
},
185-
"n": {
185+
"in": {
186186
"$ref": "#/components/schemas/TxIn"
187187
},
188-
"ut": {
188+
"out": {
189189
"$ref": "#/components/schemas/TxOut"
190190
}
191191
},
192192
"required": [
193-
"n",
194-
"ut",
195-
"atum"
193+
"in",
194+
"out",
195+
"datum"
196196
],
197197
"type": "object"
198198
},

src/lib/Wst/Offchain/Query.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ data UTxODat era a =
6161

6262
-- | Aeson options for the UTxODat type. Used to derive JSON instances and ToSchema
6363
utxoDatOptions :: JSON.Options
64-
utxoDatOptions = JSON.customJsonOptions 2
64+
utxoDatOptions = JSON.customJsonOptions 1
6565

6666
instance (C.IsCardanoEra era, ToJSON a) => ToJSON (UTxODat era a) where
6767
toJSON = JSON.genericToJSON utxoDatOptions

0 commit comments

Comments
 (0)