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: README.md
+15-5Lines changed: 15 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
## Features
8
8
9
9
- Parse JSON request bodies with a default `1 MiB` limit
10
+
- Return `413 Payload Too Large` when the configured body limit is exceeded
10
11
- Bind path params explicitly through a router-specific extractor
11
12
- Validate automatically during `ParseRequest` when a global validator is configured
12
13
- Keep `ParseRequest` panic-safe for invalid inputs and return regular errors instead
@@ -205,12 +206,12 @@ flowchart TD
205
206
206
207
## Examples
207
208
208
-
Examples live in [`examples/`](/home/rluders/Projects/rluders/httpsuite/examples).
209
+
Examples live in [`examples/`](examples/).
209
210
210
-
-[`examples/stdmux`](/home/rluders/Projects/rluders/httpsuite/examples/stdmux/main.go): core-only with `http.ServeMux`
211
-
-[`examples/gorillamux`](/home/rluders/Projects/rluders/httpsuite/examples/gorillamux/main.go): path params with Gorilla Mux
212
-
-[`examples/chi`](/home/rluders/Projects/rluders/httpsuite/examples/chi/main.go): global validation with Chi
213
-
-[`examples/restapi`](/home/rluders/Projects/rluders/httpsuite/examples/restapi/main.go): fuller REST API example with pagination-style metadata and custom problems
211
+
-[`examples/stdmux`](examples/stdmux/main.go): core-only with `http.ServeMux`
212
+
-[`examples/gorillamux`](examples/gorillamux/main.go): path params with Gorilla Mux
213
+
-[`examples/chi`](examples/chi/main.go): global validation with Chi
214
+
-[`examples/restapi`](examples/restapi/main.go): fuller REST API example with pagination-style metadata and custom problems
214
215
215
216
`examples/restapi` shows:
216
217
@@ -236,6 +237,15 @@ Examples live in [`examples/`](/home/rluders/Projects/rluders/httpsuite/examples
236
237
- global validator support added via `SetValidator` and `RegisterDefault`
237
238
- response metadata is generic, with optional `PageMeta` and `CursorMeta`
238
239
240
+
## Release workflow
241
+
242
+
The release workflow supports two paths:
243
+
244
+
- push an existing `v*` tag to verify and publish that release
245
+
- run `Release` with `workflow_dispatch` and choose `major`, `minor`, or `patch`
246
+
247
+
On manual dispatch, the workflow finds the latest `v*` tag, bumps it according to the selected semantic version part, pushes the new tag, and publishes the GitHub release for that tag.
248
+
239
249
## Tutorial
240
250
241
251
-[Improving Request Validation and Response Handling in Go Microservices](https://medium.com/@rluders/improving-request-validation-and-response-handling-in-go-microservices-cc54208123f2)
0 commit comments