Skip to content

Commit fc70573

Browse files
aquaratdcroote
andcommitted
backport: Widen allowed HTTP parameters (#1797)
* Widen parameter type * Fix validation tests * Update @api3/ois fixtures * Bump zod to match zod version in @api3/ois v2.1.0 --------- Co-authored-by: Derek Croote <dcroote@users.noreply.github.com>
1 parent 562da0c commit fc70573

44 files changed

Lines changed: 70 additions & 93 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/flat-emus-worry.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@api3/airnode-validator': minor
3+
'@api3/airnode-node': minor
4+
---
5+
6+
Widen accepted types for parameters to allow for native types to be sent as JSON

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,6 @@
131131
"solhint": "^3.4.1",
132132
"ts-node": "^10.9.1",
133133
"typescript": "^4.9.5",
134-
"yargs": "^17.7.1"
134+
"yargs": "^17.7.2"
135135
}
136136
}

packages/airnode-adapter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"test:watch": "yarn test:ts --watch"
2020
},
2121
"dependencies": {
22-
"@api3/ois": "2.0.0",
22+
"@api3/ois": "2.1.0",
2323
"@api3/promise-utils": "^0.4.0",
2424
"axios": "^1.3.4",
2525
"bignumber.js": "^9.1.1",

packages/airnode-adapter/test/fixtures/ois.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { OIS } from '@api3/ois';
22

33
export function buildOIS(overrides?: Partial<OIS>): OIS {
44
return {
5-
oisFormat: '2.0.0',
5+
oisFormat: '2.1.0',
66
version: '1.2.3',
77
title: 'Currency Converter API',
88
apiSpecifications: {

packages/airnode-admin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@api3/promise-utils": "^0.4.0",
3232
"ethers": "^5.7.2",
3333
"lodash": "^4.17.21",
34-
"yargs": "^17.7.1"
34+
"yargs": "^17.7.2"
3535
},
3636
"devDependencies": {
3737
"@types/lodash": "^4.14.191",

packages/airnode-deployer/config/config.example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"templates": [],
9595
"ois": [
9696
{
97-
"oisFormat": "2.0.0",
97+
"oisFormat": "2.1.0",
9898
"title": "CoinGecko basic request",
9999
"version": "1.0.0",
100100
"apiSpecifications": {

packages/airnode-deployer/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"ethers": "^5.7.2",
4343
"lodash": "^4.17.21",
4444
"ora": "^5.4.1",
45-
"yargs": "^17.7.1",
46-
"zod": "^3.20.6"
45+
"yargs": "^17.7.2",
46+
"zod": "^3.21.4"
4747
},
4848
"devDependencies": {
4949
"@aws-sdk/util-stream-node": "^3.295.0",

packages/airnode-deployer/test/fixtures/config.aws.valid.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"templates": [],
9696
"ois": [
9797
{
98-
"oisFormat": "2.0.0",
98+
"oisFormat": "2.1.0",
9999
"title": "CoinGecko basic request",
100100
"version": "1.0.0",
101101
"apiSpecifications": {

packages/airnode-deployer/test/fixtures/config.gcp.valid.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"templates": [],
9494
"ois": [
9595
{
96-
"oisFormat": "2.0.0",
96+
"oisFormat": "2.1.0",
9797
"title": "CoinGecko basic request",
9898
"version": "1.0.0",
9999
"apiSpecifications": {

packages/airnode-examples/integrations/authenticated-coinmarketcap/config.example.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"templates": [],
8484
"ois": [
8585
{
86-
"oisFormat": "2.0.0",
86+
"oisFormat": "2.1.0",
8787
"title": "CoinMarketCap Basic Authenticated Request",
8888
"version": "1.0.0",
8989
"apiSpecifications": {

0 commit comments

Comments
 (0)