Skip to content

Commit 1bfa581

Browse files
committed
chore: update client settings and remove ApiKeyAuth from security schemes
1 parent a149025 commit 1bfa581

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

.stainless/stainless.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ targets:
3232
environments:
3333
production: https://events.formo.so
3434

35+
# `client_settings` define settings for the API client, such as extra constructor
36+
# arguments (used for authentication), retry behavior, idempotency, etc.
37+
client_settings:
38+
opts:
39+
api_key:
40+
type: string
41+
nullable: false
42+
read_env: FORMO_API_KEY
43+
auth:
44+
security_scheme: BearerAuth
45+
3546
# `resources` define the structure and organization for your API, such as how
3647
# methods and models are grouped together and accessed. See the [configuration
3748
# guide] for more information.
@@ -44,6 +55,8 @@ resources:
4455
identify: post /v0/raw_events
4556
models:
4657
event: "#/components/schemas/Event"
58+
event_context: "#/components/schemas/EventContext"
59+
event_properties: "#/components/schemas/EventProperties"
4760

4861
settings:
4962
# All generated integration tests that hit the prism mock http server are marked
@@ -56,7 +69,6 @@ settings:
5669
license: Apache-2.0
5770

5871
security:
59-
- ApiKeyAuth: []
6072
- BearerAuth: []
6173

6274
# `readme` is used to configure the code snippets that will be rendered in the

openapi.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
],
1414
"components": {
1515
"securitySchemes": {
16-
"ApiKeyAuth": {
17-
"type": "apiKey",
18-
"in": "header",
19-
"name": "x-api-key"
20-
},
2116
"BearerAuth": {
2217
"type": "http",
2318
"scheme": "bearer",

0 commit comments

Comments
 (0)