Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JSON for UTxODat #63

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading