From 774d746f3cb6221339d51cb9cdf15a7f4e59651b Mon Sep 17 00:00:00 2001 From: Jonathan Knowles Date: Fri, 10 May 2024 04:08:03 +0000 Subject: [PATCH] Remove underscores from integer literals in `swagger.yaml`. 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. --- specifications/api/swagger.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specifications/api/swagger.yaml b/specifications/api/swagger.yaml index b25462bc59e..5f4ed58a3c3 100644 --- a/specifications/api/swagger.yaml +++ b/specifications/api/swagger.yaml @@ -4111,7 +4111,7 @@ x-parametersIntendedStakeAmount: ¶metersIntendedStakeAmount 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.