Skip to content

Commit 6f76040

Browse files
committed
feat(overlay): Add x-forwarded-for header
1 parent 47ad09c commit 6f76040

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
overlay: 1.0.0
2+
x-speakeasy-jsonpath: rfc9535
3+
info:
4+
title: Adds the x-forwarded-for-header where needed
5+
version: 0.0.1
6+
actions:
7+
- target: $.paths["/transactions"].post.parameters
8+
update:
9+
- name: X-Forwarded-For
10+
schema:
11+
type: string
12+
example: 192.168.0.2
13+
in: header
14+
description: |-
15+
The IP address to forward from the customer. Use this when calling
16+
our API from the server side to ensure the customer's address is
17+
passed to downstream services, rather than your server IP.

.speakeasy/workflow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ sources:
1313
- location: ./.speakeasy/overlays/fix-base-model.yaml
1414
- location: ./.speakeasy/overlays/fix-checkout-session-body.yaml
1515
- location: ./.speakeasy/overlays/fix-remove-unwanted-headers.yaml
16+
- location: ./.speakeasy/overlays/fix-add-x-forwarded-for-header.yaml
1617
registry:
1718
location: registry.speakeasyapi.dev/gr4vy/gr4vy/openapi
1819
targets:

0 commit comments

Comments
 (0)