diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a74ed4..65bc55d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: timeout-minutes: 10 name: lint runs-on: ${{ github.repository == 'stainless-sdks/moderation-api-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} - if: github.event_name == 'push' || github.event.pull_request.head.repo.fork + if: (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 @@ -35,7 +35,7 @@ jobs: run: ./scripts/lint build: - if: github.event_name == 'push' || github.event.pull_request.head.repo.fork + if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') timeout-minutes: 10 name: build permissions: diff --git a/.gitignore b/.gitignore index 95ceb18..3824f4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .prism.log +.stdy.log _dev __pycache__ diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1ed7be9..f94eeca 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.12.3" + ".": "1.13.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 70baa43..cf477fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 1.13.0 (2026-03-27) + +Full Changelog: [v1.12.3...v1.13.0](https://github.com/moderation-api/sdk-python/compare/v1.12.3...v1.13.0) + +### Features + +* **internal:** implement indices array format for query and form serialization ([69c6284](https://github.com/moderation-api/sdk-python/commit/69c62848a38686b3aa04f9dc5917546d1020f719)) + + +### Chores + +* **ci:** skip lint on metadata-only changes ([4266432](https://github.com/moderation-api/sdk-python/commit/42664327600ba3569c0d3285f6e0679e5242c2e9)) +* **internal:** update gitignore ([7c14aa9](https://github.com/moderation-api/sdk-python/commit/7c14aa94c384e89db9870c0a9825bb98cbd889d6)) + ## 1.12.3 (2026-03-20) Full Changelog: [v1.12.2...v1.12.3](https://github.com/moderation-api/sdk-python/compare/v1.12.2...v1.12.3) diff --git a/pyproject.toml b/pyproject.toml index 8764e96..03fdd6e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "moderation_api" -version = "1.12.3" +version = "1.13.0" description = "The official Python library for the moderation-api API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/moderation_api/_qs.py b/src/moderation_api/_qs.py index ada6fd3..de8c99b 100644 --- a/src/moderation_api/_qs.py +++ b/src/moderation_api/_qs.py @@ -101,7 +101,10 @@ def _stringify_item( items.extend(self._stringify_item(key, item, opts)) return items elif array_format == "indices": - raise NotImplementedError("The array indices format is not supported yet") + items = [] + for i, item in enumerate(value): + items.extend(self._stringify_item(f"{key}[{i}]", item, opts)) + return items elif array_format == "brackets": items = [] key = key + "[]" diff --git a/src/moderation_api/_version.py b/src/moderation_api/_version.py index c3e7c65..c089c3f 100644 --- a/src/moderation_api/_version.py +++ b/src/moderation_api/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "moderation_api" -__version__ = "1.12.3" # x-release-please-version +__version__ = "1.13.0" # x-release-please-version