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
|`date-time`| Date and time in RFC3339 format |`2021-12-31T23:59:59Z`|
145
146
|`date-time-http`| Date and time in HTTP format |`Fri, 31 Dec 2021 23:59:59 GMT`|
146
147
|`date`| Date in RFC3339 format |`2021-12-31`|
@@ -239,21 +240,21 @@ When enabled, any query parameter sent by the client that is not defined in the
239
240
240
241
When using custom JSON Schemas, i.e. not generated from Go structs, it's possible to utilize a few more validation rules. The following schema fields are respected by the built-in validator:
241
242
242
-
-`not` for negation
243
-
-`oneOf` for exclusive inputs
244
-
-`anyOf` for matching one-or-more
245
-
-`allOf` for schema unions
243
+
-`not` for negation
244
+
-`oneOf` for exclusive inputs
245
+
-`anyOf` for matching one-or-more
246
+
-`allOf` for schema unions
246
247
247
248
See [`huma.Schema`](https://pkg.go.dev/github.com/danielgtaylor/huma/v2#Schema) for more information. Note that it may be easier to use a custom [resolver](./request-resolvers.md) to implement some of these rules.
248
249
249
250
## Dive Deeper
250
251
251
-
-Tutorial
252
-
-[Your First API](../tutorial/your-first-api.md) includes string length validation
253
-
-Reference
254
-
-[`huma.Register`](https://pkg.go.dev/github.com/danielgtaylor/huma/v2#Register) registers new operations
255
-
-[`huma.Operation`](https://pkg.go.dev/github.com/danielgtaylor/huma/v2#Operation) the operation
0 commit comments