Commit graph

347 commits

Author SHA1 Message Date
Daniel G. Taylor
f50001d2e1
feat: return more specific error codes 2022-04-12 13:20:58 -07:00
Drew Orban
6f5d76f15b
Merge pull request #40 from danielgtaylor/rename-serve-content
fix: responses.ServeContent -> responses.WriteContent
2022-04-11 20:55:30 -07:00
Andrew Orban
ded1c6dc1d fix: responses.ServeContent -> responses.WriteContent 2022-04-12 01:46:12 +00:00
Daniel G. Taylor
05c4061dcb
Merge pull request #39 from danielgtaylor/location-trim-dot
fix: trim trailing dot from error locations
2022-04-11 13:57:31 -07:00
Daniel G. Taylor
09e1ebac6a
fix: trim trailing dot from error locations 2022-04-11 13:53:24 -07:00
Drew Orban
9d74b11de6
Merge pull request #38 from danielgtaylor/responses-unit-tests
chore: adding unit test for responses.ServeContent for codecov
2022-04-06 23:32:25 -07:00
Andrew Orban
e3e12ba5e1 chore: adding unit test for responses.ServeContent for codecov 2022-04-07 03:22:14 +00:00
Drew Orban
010fc90dda
Merge pull request #36 from deo986/main
Feat: Added WriteContent to huma context in order to support reading from streams directly into http response
2022-04-06 10:28:05 -07:00
Andrew Orban
5416f8ceba updated WriteContent readme example 2022-04-06 00:12:02 +00:00
Andrew Orban
9bb24bd815 removed SetContentLastModified and added lastModified time and name to WriteContent function 2022-04-06 00:06:56 +00:00
Andrew Orban
c54abf5d1a comment grammar and spelling 2022-04-05 03:35:22 +00:00
Andrew Orban
d25abae557 fixed up some coments 2022-04-05 03:27:08 +00:00
Andrew Orban
62d07c8200 removed outdated test code 2022-04-05 03:22:26 +00:00
Andrew Orban
01fbb5c220 added WriteContext 2022-04-05 03:16:52 +00:00
Andrew Orban
82f724a1df feat: added 206 Partial Content to huma responses. 2022-04-03 18:19:08 +00:00
Daniel G. Taylor
8aa6989f4c
Merge pull request #34 from danielgtaylor/fix-redacted
fix: redact headers after handler runs; fix typo
2022-03-24 10:35:46 -07:00
Daniel G. Taylor
0be6c2122f
fix: test router log instantiation 2022-03-23 17:15:17 -07:00
Daniel G. Taylor
56ec56a6cd
test: add a redacted sensitive headers test 2022-03-23 17:00:08 -07:00
Daniel G. Taylor
c21b27aaf7
fix: redact headers after handler runs; fix typo 2022-03-23 16:52:57 -07:00
Daniel G. Taylor
e04f23d61b
Merge pull request #33 from danielgtaylor/fix-zero-slice
fix: better handling of zero values; no panic for generic types
2022-03-22 09:35:50 -07:00
Daniel G. Taylor
d0e1f45708
fix: better handling of zero values; no panic for generic types 2022-03-22 09:33:47 -07:00
Daniel G. Taylor
78d423d0e4
Merge pull request #32 from danielgtaylor/fix-schema-prop
fix: serialization of time.Time and struct pointers
2022-03-21 17:57:57 -07:00
Daniel G. Taylor
1e3569536b
fix: serialization of time.Time and struct pointers 2022-03-21 17:56:00 -07:00
Daniel G. Taylor
bf3a8a303a
Merge pull request #31 from danielgtaylor/schema-link
feat: add schema describedby links and $schema property
2022-03-20 23:07:11 -07:00
Daniel G. Taylor
e96f66228b
feat: add schema describedby links and $schema property 2022-03-18 22:47:33 -07:00
logan garrett
8498106bd8
Merge pull request #30 from danielgtaylor/lg/redact-jwt-quickfix
fix: dont redact headers that dont exist
2022-03-15 12:14:18 -07:00
Logan Garrett
162c4856e3
fix: dont redact headers that dont exist 2022-03-15 11:36:03 -07:00
logan garrett
ef18a59cb0
Merge pull request #29 from danielgtaylor/lg/redact-jwt
feat: enable applications to redact headers from recovery handler
2022-03-15 10:49:17 -07:00
Logan Garrett
04a61a746f
fix: default behavior removes auth header 2022-03-14 14:55:00 -07:00
Logan Garrett
998c7ca1b3
feat: enable applications to redact headers from recovery handler 2022-03-14 14:36:44 -07:00
Daniel G. Taylor
269f9add25
Merge pull request #27 from danielgtaylor/graphql
Add Read-Only GraphQL Support
2022-03-04 10:28:47 -08:00
Daniel G. Taylor
33ddff3ce8
fix: race and limit per-request concurrency 2022-03-04 10:20:53 -08:00
Daniel G. Taylor
75cb6c5229
feat: make collection paginators customizable 2022-03-03 21:58:31 -08:00
Daniel G. Taylor
31a4f4b510
fix: make path param arguments required 2022-03-01 21:30:41 -08:00
Daniel G. Taylor
4e87c09612
feat: graphql cost analysis and complexity limits 2022-03-01 20:37:46 -08:00
Daniel G. Taylor
b4a81c0a46
feat: resolve graphql fetches concurrently 2022-02-27 23:11:45 -08:00
Daniel G. Taylor
d8c8e0b851
fix: docs updates / fixes, test for []byte 2022-02-27 20:07:08 -08:00
Daniel G. Taylor
5c902b0527
docs: GraphQL README docs updates 2022-02-27 13:19:02 -08:00
Daniel G. Taylor
3a0d6a12d2
fix: sub-resource collection bug 2022-02-27 12:47:51 -08:00
Daniel G. Taylor
615058be16
fix: better test coverage, fix loop bug 2022-02-27 10:53:00 -08:00
Daniel G. Taylor
a1d48c41e3
feat: always allow some low-level headers in responses 2022-02-26 23:26:52 -08:00
Daniel G. Taylor
9711a48852
feat: list response wrapper to expose headers 2022-02-26 23:26:19 -08:00
Daniel G. Taylor
b3e6e1a1c0
feat: add basic read-only GraphQL support 2022-02-26 10:19:33 -08:00
Daniel G. Taylor
b8b221cf1a
Merge pull request #26 from danielgtaylor/subresource-fix
fix: copy router into sub-resources
2022-02-23 10:54:26 -08:00
Daniel G. Taylor
11d7e9ffef
fix: copy router into sub-resources 2022-02-23 10:50:31 -08:00
Logan Garrett
58fff384eb
fix: pin remote documentation library version 2022-02-22 11:34:15 -08:00
Daniel G. Taylor
0be9e91a0d
fix: imports from fork cherry-pick 2022-02-17 15:28:45 -08:00
Daniel G. Taylor
5ac8249231
feat: add middleware.SetLoggerInContext 2022-02-17 15:27:31 -08:00
Daniel G. Taylor
28e4b90d5f
feat: functions to set or copy ctx with a value 2022-02-17 15:27:01 -08:00
Daniel G. Taylor
fcd31e215d
fix(content-encoding): send status code when body buffer is empty 2022-02-11 15:28:58 -08:00