You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -24,4 +24,4 @@ All of the above are welcome! But if you just opened a PR without discussing the
24
24
25
25
## Code of Conduct
26
26
27
-
All docs edits are held accountable to the [Code of Conduct](../../CODE_OF_CONDUCT.md) outlined in this project. Language in the documentation must be inclusive, kind, and respectful.
27
+
All docs edits are held accountable to the [Code of Conduct](../CODE_OF_CONDUCT.md) outlined in this project. Language in the documentation must be inclusive, kind, and respectful.
Copy file name to clipboardExpand all lines: docs/openapi-fetch/api.md
+16
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,22 @@ or when instantiating the client.
192
192
193
193
:::
194
194
195
+
### URL-encoded body
196
+
197
+
To send a body request in `application/x-www-form-urlencoded` format, which is commonly used to transmit key-value pairs in APIs like OAuth 2.0, pass the appropriate header and body as an object. `openapi-fetch` will automatically encode the body to the correct format.
openapi-fetch supports path serialization as [outlined in the 3.1 spec](https://swagger.io/docs/specification/serialization/#path). This happens automatically, based on the specific format in your OpenAPI schema:
Copy file name to clipboardExpand all lines: packages/openapi-fetch/CHANGELOG.md
+14
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,19 @@
1
1
# openapi-fetch
2
2
3
+
## 0.14.0
4
+
5
+
### Minor Changes
6
+
7
+
-[#2310](https://github.com/openapi-ts/openapi-typescript/pull/2310)[`e66b5ce`](https://github.com/openapi-ts/openapi-typescript/commit/e66b5ce63bfcdc57c6ee942e5ed4e7667e64c290) Thanks [@drwpow](https://github.com/drwpow)! - Build package with unbuild. Also remove the minified version (openapi-fetch is only useful in a TypeScript/bundler environment, so there’s no sense in loading it from a CDN clientside).
8
+
9
+
## 0.13.8
10
+
11
+
### Patch Changes
12
+
13
+
-[#2096](https://github.com/openapi-ts/openapi-typescript/pull/2096)[`0058128`](https://github.com/openapi-ts/openapi-typescript/commit/0058128afa258180793ae2071022d89a688d8ddc) Thanks [@obulat](https://github.com/obulat)! - Encode the request body if `Content-Type` header is `x-www-form-urlencoded`
14
+
-[#2157](https://github.com/openapi-ts/openapi-typescript/pull/2157)[`419d9ac`](https://github.com/openapi-ts/openapi-typescript/commit/419d9ac6851cf780b81060ddc05c231c5225a17b) Thanks [@Rendez](https://github.com/Rendez)! - Fix overriding baseUrl per request without overriding default baseUrl
/** @description The name of the task for the deployment (e.g., `deploy` or `deploy:migrations`). */
108427
108427
task?: string;
108428
108428
/** @description The name of the environment that was deployed to (e.g., `staging` or `production`). */
108429
-
environment?: string;
108429
+
environment?: string | null;
108430
108430
/** @description The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */
108431
108431
per_page?: components["parameters"]["per-page"];
108432
108432
/** @description The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." */
0 commit comments