Skip to content

Commit

Permalink
Fix JSON for UTxODat (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller authored Jan 10, 2025
1 parent 3f37533 commit f80df85
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,3 @@ jobs:
cabal update
cabal build -j all --enable-tests
cabal test all
- name: check compiled scripts are consistent
# git diff --quiet implies --exit-code
run: |
cabal run export-smart-tokens
git diff --quiet
12 changes: 6 additions & 6 deletions generated/openapi/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,20 +179,20 @@
},
"UTxODat_ConwayEra_ProgrammableLogicGlobalParams": {
"properties": {
"atum": {
"datum": {
"$ref": "#/components/schemas/ProgrammableLogicGlobalParams"
},
"n": {
"in": {
"$ref": "#/components/schemas/TxIn"
},
"ut": {
"out": {
"$ref": "#/components/schemas/TxOut"
}
},
"required": [
"n",
"ut",
"atum"
"in",
"out",
"datum"
],
"type": "object"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Wst/Offchain/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ data UTxODat era a =

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

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

0 comments on commit f80df85

Please sign in to comment.