Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5071176
chore(internal): codegen related update
stainless-app[bot] Feb 4, 2026
c8a223a
fix(encoder): correctly serialize NullStruct
stainless-app[bot] Feb 10, 2026
e1e4755
chore(internal): codegen related update
stainless-app[bot] Feb 18, 2026
255a031
chore(internal): codegen related update
stainless-app[bot] Feb 18, 2026
ab007f7
chore(internal): remove mock server code
stainless-app[bot] Feb 19, 2026
1ba9e87
chore: update mock server docs
stainless-app[bot] Feb 19, 2026
c772a06
fix: allow canceling a request while it is waiting to retry
stainless-app[bot] Feb 19, 2026
4609e1f
chore(internal): move custom custom `json` tags to `api`
stainless-app[bot] Feb 26, 2026
7b5ed76
feat(api): dpr type update
stainless-app[bot] Feb 26, 2026
950faa7
chore(ci): add build step
stainless-app[bot] Feb 28, 2026
f3ef31e
chore(tests): update webhook tests
stainless-app[bot] Mar 3, 2026
4f76b02
feat(api): revert dpr breaking change
stainless-app[bot] Mar 5, 2026
065df63
fix: fix request delays for retrying to be more respectful of high re…
stainless-app[bot] Mar 5, 2026
1fedd9f
chore(ci): skip uploading artifacts on stainless-internal branches
stainless-app[bot] Mar 7, 2026
a783267
chore: update placeholder string
stainless-app[bot] Mar 7, 2026
a4bb374
chore(internal): codegen related update
stainless-app[bot] Mar 9, 2026
bba2f4a
chore(internal): minor cleanup
stainless-app[bot] Mar 10, 2026
3d59762
chore(internal): use explicit returns
stainless-app[bot] Mar 10, 2026
93dfb11
chore(internal): use explicit returns in more places
stainless-app[bot] Mar 10, 2026
28a816d
chore(internal): tweak CI branches
stainless-app[bot] Mar 16, 2026
bbc7450
chore(internal): update gitignore
stainless-app[bot] Mar 23, 2026
420472d
fix(types): generate shared enum types that are not referenced by oth…
stainless-app[bot] Mar 24, 2026
cb58aa5
chore(ci): skip lint on metadata-only changes
stainless-app[bot] Mar 24, 2026
86a3f7c
chore(internal): support default value struct tag
stainless-app[bot] Mar 25, 2026
facb97a
chore(client): fix multipart serialisation of Default() fields
stainless-app[bot] Mar 25, 2026
1c53d0d
fix: prevent duplicate ? in query params
stainless-app[bot] Mar 26, 2026
7517de5
chore: remove unnecessary error check for url parsing
stainless-app[bot] Mar 26, 2026
e0ecf81
feat(internal): support comma format in multipart form encoding
stainless-app[bot] Mar 26, 2026
9781c64
chore(ci): support opting out of skipping builds on metadata-only com…
stainless-app[bot] Mar 27, 2026
d5de86f
chore: update docs for api:"required"
stainless-app[bot] Mar 27, 2026
8c747ea
release: 2.3.0
stainless-app[bot] Mar 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 39 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,51 @@
name: CI
on:
push:
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
branches:
- '**'
- '!integrated/**'
- '!stl-preview-head/**'
- '!stl-preview-base/**'
- '!generated'
- '!codegen/**'
- 'codegen/stl/**'
pull_request:
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
build:
timeout-minutes: 10
name: build
permissions:
contents: read
id-token: write
runs-on: ${{ github.repository == 'stainless-sdks/imagekit-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: |-
github.repository == 'stainless-sdks/imagekit-go' &&
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6

- name: Get GitHub OIDC Token
if: |-
github.repository == 'stainless-sdks/imagekit-go' &&
!startsWith(github.ref, 'refs/heads/stl/')
id: github-oidc
uses: actions/github-script@v8
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
if: |-
github.repository == 'stainless-sdks/imagekit-go' &&
!startsWith(github.ref, 'refs/heads/stl/')
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh
lint:
timeout-minutes: 10
name: lint
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.prism.log
.stdy.log
codegen.log
Brewfile.lock.json
.idea/
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.2.0"
".": "2.3.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 48
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-13fc3d7cafdea492f62eef7c1d63424d6d9d8adbff74b9f6ca6fd3fc12a36840.yml
openapi_spec_hash: a1fe6fa48207791657a1ea2d60a6dfcc
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/imagekit-inc%2Fimagekit-83a7f3659a437113f2a79e1e72794be19eff00ec232fd0206198c80364ccfebf.yml
openapi_spec_hash: b327552548ab641eb4ea3b45e643dfce
config_hash: 47cb702ee2cb52c58d803ae39ade9b44
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# Changelog

## 2.3.0 (2026-03-27)

Full Changelog: [v2.2.0...v2.3.0](https://github.com/imagekit-developer/imagekit-go/compare/v2.2.0...v2.3.0)

### Features

* **api:** dpr type update ([7b5ed76](https://github.com/imagekit-developer/imagekit-go/commit/7b5ed7649a30f369e05741ad26e87866ab369341))
* **api:** revert dpr breaking change ([4f76b02](https://github.com/imagekit-developer/imagekit-go/commit/4f76b02da01cce562522509abc4aeb9f43632227))
* **internal:** support comma format in multipart form encoding ([e0ecf81](https://github.com/imagekit-developer/imagekit-go/commit/e0ecf8124b1c7a1f02cef55883fb139e0bbf2363))


### Bug Fixes

* allow canceling a request while it is waiting to retry ([c772a06](https://github.com/imagekit-developer/imagekit-go/commit/c772a06aa381125614083d572ce99b73b4eb3ce5))
* **encoder:** correctly serialize NullStruct ([c8a223a](https://github.com/imagekit-developer/imagekit-go/commit/c8a223a358428b56cd5f13843928252c58acff90))
* fix request delays for retrying to be more respectful of high requested delays ([065df63](https://github.com/imagekit-developer/imagekit-go/commit/065df633342605e2d5f69d707170c8b92e5f59fb))
* prevent duplicate ? in query params ([1c53d0d](https://github.com/imagekit-developer/imagekit-go/commit/1c53d0da2b0a2eaa26b29b3fa6b69dc84d78a8be))
* **types:** generate shared enum types that are not referenced by other schemas ([420472d](https://github.com/imagekit-developer/imagekit-go/commit/420472d6e58c1626a7a15fa0c81cfbe02539c2d0))


### Chores

* **ci:** add build step ([950faa7](https://github.com/imagekit-developer/imagekit-go/commit/950faa70ba325a3af7e2149618d1690d681888a1))
* **ci:** skip lint on metadata-only changes ([cb58aa5](https://github.com/imagekit-developer/imagekit-go/commit/cb58aa516481e088ef0924c1d2e8979df33800aa))
* **ci:** skip uploading artifacts on stainless-internal branches ([1fedd9f](https://github.com/imagekit-developer/imagekit-go/commit/1fedd9f85df8d3c231fb7eb7e342ef98a2fe3acc))
* **ci:** support opting out of skipping builds on metadata-only commits ([9781c64](https://github.com/imagekit-developer/imagekit-go/commit/9781c64025356760a3b067d0f13c897282747997))
* **client:** fix multipart serialisation of Default() fields ([facb97a](https://github.com/imagekit-developer/imagekit-go/commit/facb97a34c051ca7f0b5ce1c18fca7eddf94b68e))
* **internal:** codegen related update ([a4bb374](https://github.com/imagekit-developer/imagekit-go/commit/a4bb374e09dc89d66cc143dc3b6bb1f315e0e4cb))
* **internal:** codegen related update ([255a031](https://github.com/imagekit-developer/imagekit-go/commit/255a0313de39110cdedc4002d451bdc39e3bc308))
* **internal:** codegen related update ([e1e4755](https://github.com/imagekit-developer/imagekit-go/commit/e1e47559733779920f899cb665b244e431702668))
* **internal:** codegen related update ([5071176](https://github.com/imagekit-developer/imagekit-go/commit/50711763c0f3bee01b36ab00500db61aa371415b))
* **internal:** minor cleanup ([bba2f4a](https://github.com/imagekit-developer/imagekit-go/commit/bba2f4a012b76ed18936d5659db28505d88cf694))
* **internal:** move custom custom `json` tags to `api` ([4609e1f](https://github.com/imagekit-developer/imagekit-go/commit/4609e1fd02735cc92d442ab6c6360429b5a8318d))
* **internal:** remove mock server code ([ab007f7](https://github.com/imagekit-developer/imagekit-go/commit/ab007f7fa428ff639b7c1177976d76b4c66eb5f5))
* **internal:** support default value struct tag ([86a3f7c](https://github.com/imagekit-developer/imagekit-go/commit/86a3f7cc8bce7c25b59720b35dfe590b974933eb))
* **internal:** tweak CI branches ([28a816d](https://github.com/imagekit-developer/imagekit-go/commit/28a816d34c0bb30be0a550ade3fc7e3a848c98bf))
* **internal:** update gitignore ([bbc7450](https://github.com/imagekit-developer/imagekit-go/commit/bbc745035b8765ad93a60ab91114135d1343e1d0))
* **internal:** use explicit returns ([3d59762](https://github.com/imagekit-developer/imagekit-go/commit/3d59762abc0b08d20e1d3aa2f10e1e46b8e605b0))
* **internal:** use explicit returns in more places ([93dfb11](https://github.com/imagekit-developer/imagekit-go/commit/93dfb117b673e0fbb123d47862bd48f7e685bfdd))
* remove unnecessary error check for url parsing ([7517de5](https://github.com/imagekit-developer/imagekit-go/commit/7517de5c74a9c6cc7bab2ed0fa6c48278558d1b5))
* **tests:** update webhook tests ([f3ef31e](https://github.com/imagekit-developer/imagekit-go/commit/f3ef31e396305fb69fa7905821fd2e94258f3b18))
* update docs for api:"required" ([d5de86f](https://github.com/imagekit-developer/imagekit-go/commit/d5de86f78052cefc4c28da6049f66980d7f79112))
* update mock server docs ([1ba9e87](https://github.com/imagekit-developer/imagekit-go/commit/1ba9e87f6b30e3992999808434dd39298de4d0a0))
* update placeholder string ([a783267](https://github.com/imagekit-developer/imagekit-go/commit/a7832673f2d1d19e5c1d87b2ab3ad3b152288f73))

## 2.2.0 (2026-02-02)

Full Changelog: [v2.1.1...v2.2.0](https://github.com/imagekit-developer/imagekit-go/compare/v2.1.1...v2.2.0)
Expand Down
7 changes: 0 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ $ go mod edit -replace github.com/imagekit-developer/imagekit-go=/path/to/imagek

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
```

```sh
$ ./scripts/test
```
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/imagekit-developer/imagekit-go/v2@v2.2.0'
go get -u 'github.com/imagekit-developer/imagekit-go/v2@v2.3.0'
```

<!-- x-release-please-end -->
Expand Down Expand Up @@ -112,7 +112,7 @@ func main() {
The imagekit library uses the [`omitzero`](https://tip.golang.org/doc/go1.24#encodingjsonpkgencodingjson)
semantics from the Go 1.24+ `encoding/json` release for request fields.

Required primitive fields (`int64`, `string`, etc.) feature the tag <code>\`json:"...,required"\`</code>. These
Required primitive fields (`int64`, `string`, etc.) feature the tag <code>\`api:"required"\`</code>. These
fields are always serialized, even their zero values.

Optional primitive types are wrapped in a `param.Opt[T]`. These fields can be set with the provided constructors, `imagekit.String(string)`, `imagekit.Int(int64)`, etc.
Expand Down
Loading
Loading