Commit graph

  • f8b56cb455 Replace is_referenceable() with always_inline_schema() Graham Esau 2024-05-26 16:51:42 +01:00
  • 1aaa162e0b Make schema_name() return Cow<'static, str> instead of String Graham Esau 2024-05-26 15:20:56 +01:00
  • fe05631f21 impl JsonSchema for Schema Graham Esau 2024-05-23 17:44:50 +01:00
  • 1819dceb24 Merge branch 'master' into v1 Graham Esau 2024-05-23 17:30:53 +01:00
  • 5e20a37a1a v0.8.21 Graham Esau 2024-05-23 17:26:07 +01:00
  • a9a9c7e8ed
    Fix "null" default not being set on schema (#296) Graham Esau 2024-05-23 17:25:07 +01:00
  • 1247b8975e Revert to previous behaviour regarding visitors running on $defs/definitions lazily (only if/when root schema is created). Graham Esau 2024-05-23 14:14:42 +01:00
  • d32231c082 Allow running visitors against pre-2020-12 schemas Graham Esau 2024-05-20 15:25:16 +01:00
  • 3aa0e7fa3c
    Support JSON Schema draft 2020-12 and use it by default (#294) Graham Esau 2024-05-19 20:49:45 +01:00
  • 95475ad1b4 Use $defs instead of definitions in draft 2019-09 Graham Esau 2024-05-19 18:07:51 +01:00
  • 22e89a5dd6 Never add a field with the default attribute to a schema's required properties Graham Esau 2024-05-18 23:00:24 +01:00
  • 7ecaa7feab
    Revert unintentional change in behaviour when combining default and required attributes (#293) Graham Esau 2024-05-18 22:37:40 +01:00
  • d3b6ff5aeb Re-add preserve_order feature, to preserve order of struct fields in a schema's properties Graham Esau 2024-05-18 21:55:05 +01:00
  • c4d42ec11a Refactor flatten and move it to _private, remove TempFixupForTests, regenerate test schemas Graham Esau 2024-05-13 22:02:30 +01:00
  • 18300c67bb
    Use const instead of single-valued enum (#291) Graham Esau 2024-05-13 21:30:51 +01:00
  • cf5be1b266 Ignore failing test Graham Esau 2024-05-13 21:29:16 +01:00
  • 8c2c32bce0 Regenerate example schemas Graham Esau 2024-05-13 18:33:55 +01:00
  • f5d2142714 Regenerate test schemas Graham Esau 2024-05-13 18:33:48 +01:00
  • 4dde683358 Update OpenAPI 3.0 schema URI Graham Esau 2024-05-13 18:17:21 +01:00
  • dec3c67e87 Remove test schemas for now-removed RootSchema Graham Esau 2024-05-13 17:58:09 +01:00
  • efff7e2606 Merge branch 'master' into v1 Graham Esau 2024-05-13 17:55:02 +01:00
  • 449bb1a0ca Add more tests for different schema settings Graham Esau 2024-05-13 17:53:56 +01:00
  • b87b6ebb6c Remove usage of is_some_and (not supported in rustc 1.60) Graham Esau 2024-05-13 10:56:55 +01:00
  • 3b3870ca82 Simplify flatten Graham Esau 2024-05-13 10:52:42 +01:00
  • 342cd5fd09
    Define Schema as a newtype around serde_json::Value (#289) Graham Esau 2024-05-12 19:23:54 +01:00
  • 7f6a7b7e32 Typo in changelog Graham Esau 2024-05-06 18:17:37 +01:00
  • 8da70a4d45 v0.8.19 Graham Esau 2024-05-06 18:13:54 +01:00
  • 1a40d1b06c Fix deriving JsonSchema on enum without variants Graham Esau 2024-05-06 18:12:20 +01:00
  • 4b90b6f8c8 v0.8.18 Graham Esau 2024-05-06 13:58:49 +01:00
  • d04c17bda4
    Simplify generated enum code (#286) Graham Esau 2024-05-06 13:54:13 +01:00
  • e5ef0f8d7b v0.8.17 Graham Esau 2024-04-28 19:03:40 +01:00
  • df00e2fd71 Add comment explaining why we double-parse an Expr Graham Esau 2024-04-28 18:59:42 +01:00
  • bbedf130ce Include Cargo.lock file in git Graham Esau 2024-04-28 18:46:56 +01:00
  • 9501fe319f Update to syn 2 and serde_derive_internals 0.29 Graham Esau 2024-04-28 18:44:43 +01:00
  • e04e3a3a81 v0.8.16 Graham Esau 2023-11-11 20:35:26 +00:00
  • ae9544aaf9 Put schema value into a variable before calling apply_metadata Graham Esau 2023-11-11 20:28:10 +00:00
  • 9415fcb57b v0.8.15 Graham Esau 2023-09-17 21:13:54 +01:00
  • a8d723342f Cleanup and test updates for bigdecimal04 Graham Esau 2023-09-17 21:10:22 +01:00
  • cc28738f41
    Support bigdecimal 0.4 (#237) Adam Chalmers 2023-09-17 14:05:21 -06:00
  • 0084f1a655 v0.8.14 Graham Esau 2023-09-17 20:56:13 +01:00
  • 6e3248f830 Fix bad merge Graham Esau 2023-09-17 20:53:10 +01:00
  • a136277f60 Update docs for schema_id() Graham Esau 2023-09-17 20:51:37 +01:00
  • 28258ae99b Update changelog Graham Esau 2023-09-17 20:40:19 +01:00
  • 342b2dff33
    Add schema_id(), handles different types with the same name (#247) Graham Esau 2023-09-17 20:36:52 +01:00
  • 53bb51cb25 Update changelog Graham Esau 2023-09-17 20:35:13 +01:00
  • db1dd47039
    Fix schemas for bigdecimal/rust_decimal (#248) Graham Esau 2023-09-17 20:31:24 +01:00
  • a5e51b22b3
    Add #[schemars(inner(...)] attribute to specify schema for array items (#234) Jakub Jirutka 2023-09-09 14:35:53 +02:00
  • 30e513ac14
    Use feature resolver version 2 Graham Esau 2023-09-09 13:32:54 +01:00
  • 27469ab32b Update changelog for 0.8.13 Graham Esau 2023-08-28 21:20:24 +01:00
  • 6931d70e0a v0.8.13 Graham Esau 2023-08-28 21:19:01 +01:00
  • e0c867cd6a Forward RawValue's JsonSchema impl to Value Graham Esau 2023-08-28 12:26:15 +01:00
  • c487bbb9e7 Update docs and changelog Graham Esau 2023-08-28 12:20:38 +01:00
  • cb392d1829 Cover serde_json RawValue type by schemars Łukasz Biel 2022-10-13 13:09:54 +02:00
  • 5836afbd64 Update docs and changelog Graham Esau 2023-08-27 22:56:27 +01:00
  • aeb989486e Add support for indexmap v2 David Knaack 2023-06-27 15:15:13 +02:00
  • 5dbfa49c5e Update MSRV to 1.60 Graham Esau 2023-08-27 22:20:14 +01:00
  • 37478d764e
    Support types with const generics (#239) Graham Esau 2023-08-27 20:50:20 +01:00
  • 0303f0334e
    add support for semver crate (#238) Graham Esau 2023-08-27 20:00:36 +01:00
  • 1ac9d19a24 Don't duplicate entire README in doc comment Graham Esau 2023-08-20 17:54:47 +01:00
  • 3d56977ecf Update to rust 2021 edition Graham Esau 2023-08-20 17:23:41 +01:00
  • 072730f6f6 Resolve clippy warnings Graham Esau 2023-08-20 17:19:53 +01:00
  • e0495c0c87 Update MSRV to 1.56 Graham Esau 2023-08-20 17:09:09 +01:00
  • 386e3d7f5a v0.8.12 Graham Esau 2023-02-26 20:57:53 +00:00
  • 9dc816fafc Set a reasonable min version for serde_json Simon Warta 2022-12-03 01:06:58 +01:00
  • 824993ca76 Apply clippy fixes Graham Esau 2023-02-26 19:59:17 +00:00
  • 39bae201eb Run cargo fmt Graham Esau 2023-02-26 19:47:10 +00:00
  • 587176fe9f
    add optional smol_str support (#72) Gleb Pomykalov 2023-02-26 19:42:16 +00:00
  • 73715c10e0 Fix GH actions badge Graham Esau 2023-02-26 19:10:21 +00:00
  • b13fcd15cf Fix rustc 1.45 CI Graham Esau 2023-02-26 19:05:45 +00:00
  • 5268080b01 v0.8.11 Graham Esau 2022-10-02 20:01:43 +01:00
  • 84c2a2bb54 Second attempt to fix rust 1.45 CI Graham Esau 2022-10-02 19:59:54 +01:00
  • cf0cf2b1be Attempt to fix rust 1.45 CI Graham Esau 2022-10-02 19:56:06 +01:00
  • 4f14c1a74c Update docs and changelog Graham Esau 2022-08-15 12:58:24 +01:00
  • c59e5b5e1c Fix test Graham Esau 2022-08-15 11:00:08 +01:00
  • 4754a13fb3 Ignore bound set in serde attrs Graham Esau 2022-08-15 10:51:25 +01:00
  • 104dccca50 Add #[schemars(bound = ...)] attribute Graham Esau 2022-08-14 13:58:33 +01:00
  • 6ada120cd3 Fix a typo Randy Barlow 2022-08-17 12:03:53 -04:00
  • 4db6733844 Fix rendering of HTML tags in markdown docs Graham Esau 2022-08-14 15:35:32 +01:00
  • b48bb2b2b3 Omit third-party crates from rust 1.45 CI Graham Esau 2022-08-12 16:21:11 +01:00
  • dfa51de466 Fix rust 1.45 CI Graham Esau 2022-08-12 16:14:59 +01:00
  • 954f9f4c5c Fix rust 1.45 CI Graham Esau 2022-08-12 16:00:11 +01:00
  • ba92234b3e Update changelog, update MSRV to 1.45 Graham Esau 2022-08-12 15:49:59 +01:00
  • 76427ef384
    Fix handling of attributes applied to unit variant types (#152) Adam Leventhal 2022-08-12 07:37:34 -07:00
  • 9464118c3a v0.8.10 Graham Esau 2022-05-17 18:33:47 +01:00
  • d93bdc43e3 Revert "Support generic default values" Graham Esau 2022-05-17 18:17:17 +01:00
  • 1610294af4 v0.8.9 Graham Esau 2022-05-16 22:40:52 +01:00
  • 74974d3e95
    Support uuid v1 and arrayvec 0.7 (#142) Graham Esau 2022-05-16 22:39:48 +01:00
  • 043d794e39 Fix build warnings from tests Graham Esau 2022-05-15 22:55:10 +01:00
  • 29d2455bb3 Update changelog Graham Esau 2022-05-15 22:35:06 +01:00
  • 115a9eebf2 Add license notice to regex_syntax.rs Andy Weiss 2022-03-02 12:26:16 -05:00
  • 70f4fb051a Update changelog Graham Esau 2022-05-15 22:30:23 +01:00
  • 85ed613e4a Remove unnecessary derives on test struct Graham Esau 2022-05-15 22:26:13 +01:00
  • feb6c4b2fe Use as instead of immediately-invoked typed function Graham Esau 2022-05-15 22:19:52 +01:00
  • b38a55331b Support generic default values Graeme Coupar 2021-05-24 16:51:26 +01:00
  • e9d5f4057e v0.8.8 Graham Esau 2021-11-25 22:27:16 +00:00
  • 98ad16288b Internally tagged enums don't honor deny_unknown_fields as precisely as they might. Adam H. Leventhal 2021-10-07 23:21:05 -07:00
  • d549957183 Document new optional dependencies Graham Esau 2021-11-25 21:36:00 +00:00
  • f0d2b1c50c
    Add support for rust_decimal and bigdecimal (#101) timando 2021-11-26 07:42:25 +10:00
  • 3cac0e5048 Add example for optional dependency in readme Graham Esau 2021-11-25 21:12:30 +00:00
  • 1a13ba9f9b v0.8.7 Graham Esau 2021-11-14 19:23:15 +00:00