Commit graph

120 commits

Author SHA1 Message Date
Graham Esau
b54680e7dc 1.0.0-alpha.16 2024-11-25 10:44:25 +00:00
Graham Esau
e5168819a4
Allow example attribute value to be any expression (#354) 2024-11-20 22:18:31 +00:00
Graham Esau
65346d6683
Remove enumset optional dependency (#339)
The `JsonSchema` impl for `EnumSet` did not accurately represent how it is de/serialized by default
2024-09-09 21:52:16 +01:00
Graham Esau
4a526adf30 1.0.0-alpha.15 2024-09-05 13:02:19 +01:00
Graham Esau
05325d2b7c
Add Contract for generating separate serialize/deserialize schemas (#335) 2024-09-04 19:41:34 +01:00
Graham Esau
0672c862c8 Add Schema methods insert, get and remove
These are just convenience methods that delegate to the inner object. `insert` will also convert bool schemas to object schemas.
2024-08-30 11:40:29 +01:00
Graham Esau
441249a53b 1.0.0-alpha.14 2024-08-29 17:29:05 +01:00
Graham Esau
bb72f0a4f7 Update inner attribute docs 2024-08-29 17:24:20 +01:00
Graham Esau
9770301218
Read #[garde(...)] attributes in addition to #[validate(...)] (#331) 2024-08-29 17:12:06 +01:00
Graham Esau
1c47af475f 1.0.0-alpha.13 2024-08-27 19:27:42 +01:00
Graham Esau
ae2b5f16c0 1.0.0-alpha.12 2024-08-27 19:04:48 +01:00
Graham Esau
f639598314 Update attribute docs 2024-08-27 18:04:38 +01:00
Graham Esau
d07a1be031
Rewrite attribute handling code (#330) 2024-08-27 16:50:47 +01:00
Graham Esau
fb6bd6d439 Add note to docs about setting examples via the extend attribute 2024-08-25 13:09:18 +01:00
Graham Esau
26366d112d 1.0.0-alpha.11 2024-08-24 14:38:55 +01:00
Graham Esau
016d20c1eb 1.0.0-alpha.10 2024-08-22 20:00:04 +01:00
Graham Esau
9683d18e67 1.0.0-alpha.9 2024-08-21 17:54:53 +01:00
Graham Esau
8438865588 Disable doctests for derive code snippets 2024-08-21 17:52:56 +01:00
Graham Esau
2914a1b66a Include derive(JsonSchema) docs in rustdoc 2024-08-21 17:52:56 +01:00
Graham Esau
f8974a951d 1.0.0-alpha.8 2024-08-21 16:20:01 +01:00
Graham Esau
b4f214f6dc
Remove usages of gen identifier (#323)
`gen` is a reserved keyword in rust 2024, making it very awkward to use as a module/variable name.
2024-08-21 16:15:13 +01:00
Graham Esau
8142be1ea2 Regenerate docs search-data 2024-08-21 10:44:49 +01:00
Graham Esau
564a5d8ae4 Update just-the-docs and feature flags docs 2024-08-20 23:09:19 +01:00
Graham Esau
8fa61b09a4 1.0.0-alpha.7 2024-08-19 22:33:56 +01:00
Graham Esau
677f76f7a3 1.0.0-alpha.6 2024-08-17 20:12:53 +01:00
Graham Esau
4b7e9ace01 1.0.0-alpha.5 2024-08-17 19:50:07 +01:00
Graham Esau
3c9e49d161 1.0.0-alpha.4 2024-08-17 16:20:51 +01:00
Graham Esau
c61b26091e Update examples 2024-08-10 17:57:02 +01:00
Graham Esau
7bcd200a21 v1.0.0-alpha.3 2024-08-10 13:40:05 +01:00
Graham Esau
55b88b53db Add migration guide 2024-08-10 13:01:36 +01:00
Graham Esau
14b06e71ba
Add transform = ... attribute (#312)
This allows running arbitrary transforms on generated schemas when deriving `JsonSchema`
2024-08-10 09:56:52 +01:00
Graham Esau
ce15380863
Do not collapse newlines in doc comments (#310) 2024-08-04 16:43:22 +01:00
Graham Esau
91ee3f915c Update docs for v1 2024-06-09 19:48:35 +01:00
Graham Esau
692958353d Add extend attribute to docs 2024-06-09 19:26:40 +01:00
Graham Esau
d511d447f7 Add separate docs for v0.8/v1 2024-06-09 19:01:24 +01:00
Graham Esau
760403e2f5 Update doc comments and make SchemaGenerator available from crate root 2024-05-27 11:09:15 +01:00
Graham Esau
fb6e1a5c61 Regenerate example schemas 2024-05-26 21:22:48 +01:00
Graham Esau
f8b56cb455 Replace is_referenceable() with always_inline_schema() 2024-05-26 16:51:42 +01:00
Graham Esau
1aaa162e0b Make schema_name() return Cow<'static, str> instead of String 2024-05-26 15:20:56 +01:00
Graham Esau
8c2c32bce0 Regenerate example schemas 2024-05-13 18:33:55 +01:00
Graham Esau
9415fcb57b v0.8.15 2023-09-17 21:13:54 +01:00
Graham Esau
a136277f60 Update docs for schema_id() 2023-09-17 20:51:37 +01:00
Jakub Jirutka
a5e51b22b3
Add #[schemars(inner(...)] attribute to specify schema for array items (#234) 2023-09-09 13:35:53 +01:00
Graham Esau
c487bbb9e7 Update docs and changelog 2023-08-28 12:29:36 +01:00
Graham Esau
5836afbd64 Update docs and changelog 2023-08-27 23:01:12 +01:00
Graham Esau
0303f0334e
add support for semver crate (#238)
---------

Co-authored-by: Omar Tawfik <15987992+OmarTawfik@users.noreply.github.com>
2023-08-27 20:00:36 +01:00
Graham Esau
386e3d7f5a v0.8.12 2023-02-26 21:00:48 +00:00
Graham Esau
73715c10e0 Fix GH actions badge 2023-02-26 19:10:21 +00:00
Graham Esau
4f14c1a74c Update docs and changelog 2022-10-02 19:46:29 +01:00
Graham Esau
4db6733844 Fix rendering of HTML tags in markdown docs 2022-08-14 15:35:32 +01:00