Commit graph

554 commits

Author SHA1 Message Date
Graham Esau
5d58a4d3f0 Wrap comment lines at 100 chars 2024-08-30 13:05:33 +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
d6c8b6b022 Fix ui tests in nightly 2024-08-30 11:12:23 +01:00
Graham Esau
dffa33fb46 Enable all crate features with rust-analyzer 2024-08-30 10:27:58 +01:00
Graham Esau
9bba81892f Move private crate exports into _private module 2024-08-29 19:47:19 +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
56cdd45c5a Allow validate (but not schemars) attributes to have extra values where necessary 2024-08-28 09:59:24 +01:00
Graham Esau
a85f0fc7bc Rust rustfmt 2024-08-28 09:16:29 +01:00
Graham Esau
1c47af475f 1.0.0-alpha.13 2024-08-27 19:27:42 +01:00
Graham Esau
d7ff81de96 Fix regex attribute when it uses dereferencing 2024-08-27 19:26:02 +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
846c49e07e Update changelog 2024-08-27 17:59:08 +01:00
Maximilian Güntner
04fa0713da
fix: honor rename_all_fields, add tests (#304) 2024-08-27 17:55:21 +01:00
Graham Esau
0e8a053c74 Make clippy::doc_markdown happy 2024-08-27 17:44: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
7c0ba8da88 Update changelog 2024-08-24 18:29:26 +01:00
Graham Esau
66f17fff0e
Allow regex(path = ...) value to be a non-string expression (#328) 2024-08-24 18:27:27 +01:00
Graham Esau
dc1245bbd8 Test MSRV with --all-features 2024-08-24 17:27:04 +01:00
Graham Esau
0f6daccc0a Use OccupiedEntry::remove_entry() 2024-08-24 15:01:31 +01:00
Graham Esau
fe6275be6e Fix MSRV badge for prerelease version 2024-08-24 14:58:41 +01:00
Graham Esau
26366d112d 1.0.0-alpha.11 2024-08-24 14:38:55 +01:00
Graham Esau
df06fc5f66
Allow arbitrary expressions in doc/title/description attributes (#327) 2024-08-24 14:35:30 +01:00
Graham Esau
5547e77bcd Resolve clippy lint multiple_bound_locations 2024-08-24 11:35:28 +01:00
Graham Esau
016d20c1eb 1.0.0-alpha.10 2024-08-22 20:00:04 +01:00
Graham Esau
9658c42d6a
Fix some cases of unsatisfiable schemas when flattening enums (#325)
Addresses #164 and #165
2024-08-22 19:56:31 +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
4db53a1bce Add link to docs site from rustdoc comment 2024-08-21 17:05:30 +01:00
Graham Esau
67f5e3d56b Add heading to 1.0.0-alpha.8 changelog 2024-08-21 16:21:02 +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
Romain Lebran
5d5837741c
Add support for multiple flatten enums (#320)
Co-authored-by: Graham Esau <gesau@hotmail.co.uk>
2024-08-19 22:30:11 +01:00
Graham Esau
30a9a384e2 Improve flatten behavioure with additionalProperties 2024-08-19 12:08:47 +01:00
Graham Esau
85626ab3a3 Enable (and fix) more clippy lints 2024-08-19 10:42:05 +01:00
Graham Esau
46947d77c7 Change docs link to use latest 1.0.0 prerelease instead of latest stable version 2024-08-17 20:22:40 +01:00
Graham Esau
677f76f7a3 1.0.0-alpha.6 2024-08-17 20:12:53 +01:00
Graham Esau
a6698f8955 Make custom CSS available in both crate directories
This *should* fix the docs.rs build...
2024-08-17 20:05:43 +01:00
Graham Esau
4b7e9ace01 1.0.0-alpha.5 2024-08-17 19:50:07 +01:00
Graham Esau
89a34e7a63
Add no_std support via disabling the new default feature std (#319) 2024-08-17 19:46:11 +01:00
Graham Esau
3c9e49d161 1.0.0-alpha.4 2024-08-17 16:20:51 +01:00
Bilal Mahmoud
0af8f50086
Add absolute import for Result (#307)
This changes it so that the `Result` used in the derived schema code is using the absolute path to the `Result` enum, otherwise type aliases, such as: `error_stack::Result` cannot be used.
2024-08-17 13:28:56 +01:00
Graham Esau
599fbb38b6 Fix JsonSchema impls for atomics
This was broken in 1c34428394
2024-08-16 22:27:45 +01:00