Skip to content

Commit

Permalink
Remove underscores from integer literals in swagger.yaml.
Browse files Browse the repository at this point in the history
With:
```
$ yq --version
yq (https://github.com/mikefarah/yq/) version v4.40.5
```

Before applying this commit:
```
$ yq eval specifications/api/swagger.yaml -o=json
Error: json: error calling MarshalJSON for type *yqlib.CandidateNode:
json: error calling MarshalJSON for type *yqlib.CandidateNode: json:
error calling MarshalJSON for type *yqlib.CandidateNode:
strconv.ParseInt: parsing "45_000_000_000_000_000": invalid syntax
```

After applying this commit, the error disappears.
  • Loading branch information
jonathanknowles committed May 10, 2024
1 parent 6dc7c03 commit 774d746
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specifications/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4111,7 +4111,7 @@ x-parametersIntendedStakeAmount: &parametersIntendedStakeAmount
schema:
type: integer
minimum: 0
maximum: 45_000_000_000_000_000 # 45 B ada (in Lovelace)
maximum: 45000000000000000 # 45 B ada (in Lovelace)
description: |
The stake the user intends to delegate in Lovelace. Required.
Expand Down

0 comments on commit 774d746

Please sign in to comment.