Skip to content

Commit 590c729

Browse files
authored
move networks field to the outer level for admin api (#136)
1 parent f56788d commit 590c729

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/openapi/admin/admin.yaml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ paths:
4141
solanaRules:
4242
description: Rules for "solana" policy type. Empty if `policyType` is not "solana".
4343
$ref: "#/components/schemas/SolanaRules"
44+
networks:
45+
description: |
46+
Networks for the policy. Example: ["ETH_MAINNET"]. For Solana policies, valid values are "SOLANA_MAINNET" and "SOLANA_DEVNET".
47+
type: array
48+
items:
49+
type: string
4450
responses:
4551
"200":
4652
description: Policy created successfully
@@ -145,6 +151,12 @@ paths:
145151
solanaRules:
146152
$ref: "#/components/schemas/SolanaRules"
147153
description: Rules for "solana" policy type. Empty if `policyType` is not "solana".
154+
networks:
155+
description: |
156+
Networks for the policy. Example: ["ETH_MAINNET"]. For Solana policies, valid values are "SOLANA_MAINNET" and "SOLANA_DEVNET".
157+
type: array
158+
items:
159+
type: string
148160
responses:
149161
"200":
150162
description: Policy rules replaced successfully
@@ -472,13 +484,6 @@ components:
472484
required:
473485
- webhookUrl
474486
- approveOnFailure
475-
networks:
476-
description: Networks for the policy
477-
type: array
478-
items:
479-
type: string
480-
default:
481-
- ETH_MAINNET
482487
required:
483488
- startTimeUnix
484489
- sponsorshipExpiryMs
@@ -506,13 +511,6 @@ components:
506511
type: string
507512
description: Unix timestamp of when the policy ends
508513
default: "1679340742"
509-
networks:
510-
type: array
511-
items:
512-
type: string
513-
description: List of networks the policy is active on
514-
default:
515-
- "SOLANA_MAINNET"
516514

517515
Policy:
518516
type: object

0 commit comments

Comments
 (0)