Skip to content

Commit 8817fd8

Browse files
authored
Add 404 for Analytics.upsert_analytics_rule (#47)
1 parent 71dcc92 commit 8817fd8

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## major.minor.patch (yyyy.mm.dd)
99

10+
## 1.3.1 (2026.04.14)
11+
12+
### Fixed
13+
14+
* Add 404 on response for `Analytics.upsert_analytics_rule`.
15+
1016
## 1.3.0 (2026.04.14)
1117

1218
### Chore

lib/open_api_typesense/operations/analytics.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ defmodule OpenApiTypesense.Analytics do
306306
response: [
307307
{200, {OpenApiTypesense.AnalyticsRule, :t}},
308308
{400, {OpenApiTypesense.ApiResponse, :t}},
309-
{401, {OpenApiTypesense.ApiResponse, :t}}
309+
{401, {OpenApiTypesense.ApiResponse, :t}},
310+
{404, {OpenApiTypesense.ApiResponse, :t}}
310311
],
311312
opts: opts
312313
})

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule OpenApiTypesense.MixProject do
33

44
@source_url "https://github.com/jaeyson/open_api_typesense"
55
@hex_url "https://hexdocs.pm/open_api_typesense"
6-
@version "1.3.0"
6+
@version "1.3.1"
77

88
def project do
99
[

priv/open_api.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2457,6 +2457,12 @@ paths:
24572457
application/json:
24582458
schema:
24592459
$ref: "#/components/schemas/ApiResponse"
2460+
'404':
2461+
description: Analytics rule not found
2462+
content:
2463+
application/json:
2464+
schema:
2465+
$ref: "#/components/schemas/ApiResponse"
24602466
get:
24612467
tags:
24622468
- analytics

0 commit comments

Comments
 (0)