Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
fbjorn committed Jul 19, 2024
1 parent 2f4ed40 commit cef6041
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
4 changes: 3 additions & 1 deletion definition_tooling/converter/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ def request(
x_authorization_provider: Optional[str] = Header(
None, description="The bare domain of the system that provided the token."
),
x_api_token: Optional[str] = Header(None, description="API token"),
x_api_key: Optional[str] = Header(
None, description="API key or token", title="X-API-Token"
),
):
pass

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@
}
},
{
"description": "API token",
"description": "API key or token",
"in": "header",
"name": "x-api-token",
"name": "x-api-key",
"required": false,
"schema": {
"anyOf": [
Expand All @@ -346,8 +346,8 @@
"type": "null"
}
],
"description": "API token",
"title": "X-Api-Token"
"description": "API key or token",
"title": "X-API-Token"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@
}
},
{
"description": "API token",
"description": "API key or token",
"in": "header",
"name": "x-api-token",
"name": "x-api-key",
"required": false,
"schema": {
"anyOf": [
Expand All @@ -300,8 +300,8 @@
"type": "null"
}
],
"description": "API token",
"title": "X-Api-Token"
"description": "API key or token",
"title": "X-API-Token"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@
}
},
{
"description": "API token",
"description": "API key or token",
"in": "header",
"name": "x-api-token",
"name": "x-api-key",
"required": false,
"schema": {
"anyOf": [
Expand All @@ -361,8 +361,8 @@
"type": "null"
}
],
"description": "API token",
"title": "X-Api-Token"
"description": "API key or token",
"title": "X-API-Token"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@
}
},
{
"description": "API token",
"description": "API key or token",
"in": "header",
"name": "x-api-token",
"name": "x-api-key",
"required": false,
"schema": {
"anyOf": [
Expand All @@ -333,8 +333,8 @@
"type": "null"
}
],
"description": "API token",
"title": "X-Api-Token"
"description": "API key or token",
"title": "X-API-Token"
}
}
],
Expand Down

0 comments on commit cef6041

Please sign in to comment.