diff --git a/CHANGELOG.md b/CHANGELOG.md index 012b607..86dac2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## major.minor.patch (yyyy.mm.dd) +## 1.3.1 (2026.04.14) + +### Fixed + +* Add 404 on response for `Analytics.upsert_analytics_rule`. + ## 1.3.0 (2026.04.14) ### Chore diff --git a/lib/open_api_typesense/operations/analytics.ex b/lib/open_api_typesense/operations/analytics.ex index 42ece61..7432016 100644 --- a/lib/open_api_typesense/operations/analytics.ex +++ b/lib/open_api_typesense/operations/analytics.ex @@ -306,7 +306,8 @@ defmodule OpenApiTypesense.Analytics do response: [ {200, {OpenApiTypesense.AnalyticsRule, :t}}, {400, {OpenApiTypesense.ApiResponse, :t}}, - {401, {OpenApiTypesense.ApiResponse, :t}} + {401, {OpenApiTypesense.ApiResponse, :t}}, + {404, {OpenApiTypesense.ApiResponse, :t}} ], opts: opts }) diff --git a/mix.exs b/mix.exs index 1ad82fd..522f91d 100644 --- a/mix.exs +++ b/mix.exs @@ -3,7 +3,7 @@ defmodule OpenApiTypesense.MixProject do @source_url "https://github.com/jaeyson/open_api_typesense" @hex_url "https://hexdocs.pm/open_api_typesense" - @version "1.3.0" + @version "1.3.1" def project do [ diff --git a/priv/open_api.yml b/priv/open_api.yml index 90c20b4..e825055 100644 --- a/priv/open_api.yml +++ b/priv/open_api.yml @@ -2457,6 +2457,12 @@ paths: application/json: schema: $ref: "#/components/schemas/ApiResponse" + '404': + description: Analytics rule not found + content: + application/json: + schema: + $ref: "#/components/schemas/ApiResponse" get: tags: - analytics