Commit graph

571 commits

Author SHA1 Message Date
de9566709a feat: support hashbrown015 2025-02-15 23:02:32 +03:00
0b5abbcd0f add support for compact_str crate 2025-02-15 23:02:15 +03:00
Graham Esau
efb74969e2
Update dependencies (#368) 2025-01-24 22:03:59 +00:00
Dmitry Dygalo
f8c1fe21b7 chore: Update jsonschema to 0.20.0
Signed-off-by: Dmitry Dygalo <dmitry.dygalo@workato.com>
2025-01-13 10:25:47 +00:00
Andre Popovitch
13ffa14d1f Fix clippy lints 2025-01-13 10:22:16 +00:00
Graham Esau
ae4fe29592 1.0.0-alpha.17 2024-12-02 22:19:33 +00:00
Graham Esau
b54680e7dc 1.0.0-alpha.16 2024-11-25 10:44:25 +00:00
Graham Esau
95023c2ab0
Avoid inlining schemas in internally-tagged enum newtype variants (#355)
Schemas are still inlined in some cases, e.g. when the inner type has `deny_unknown_fields`, because then `$ref` would cause an unsatisfiable schema due to the variant tag not being allowed
2024-11-25 10:26:37 +00:00
Graham Esau
e5168819a4
Allow example attribute value to be any expression (#354) 2024-11-20 22:18:31 +00:00
Graham Esau
a479e6cc0e
Improvements to test coverage (#340)
This increases msrv to 1.70
2024-09-16 10:06:22 +01:00
Graham Esau
092dc17ae4
Delete unused enumset test schema 2024-09-09 22:08:46 +01: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
6a03758284 Switch from actions-rs/toolchain to dtolnay/rust-toolchain
Also update checkout action because why not
2024-09-09 10:25:12 +01:00
Graham Esau
0a7aa5ebf0
Create FUNDING.yml 2024-09-07 19:24:51 +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
497333e91b Replace placeholder error message 2024-09-01 11:30:54 +01:00
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