Commit graph

  • 690fe44343 Allow non-Serialize default values. Graham Esau 2021-11-14 19:16:46 +00:00
  • 6f39a13724 Update examples after 0a1200b Graham Esau 2021-11-14 19:05:09 +00:00
  • d059686da8 Implement JsonSchema on EnumSet type Matt Campbell 2021-07-18 18:45:25 -05:00
  • 515a87a564 Correct latest changelog entry Graham Esau 2021-09-26 18:43:53 +01:00
  • 33e54d3c42 v0.8.6 Graham Esau 2021-09-26 18:39:11 +01:00
  • 0a1200baac
    Use oneOf for enums when possible (#108) Adam Leventhal 2021-09-26 10:02:44 -07:00
  • dec8bcc3b7 v0.8.5 Graham Esau 2021-09-20 16:49:50 +01:00
  • de7314f305 Allow empty #[validate] attributes. Graham Esau 2021-09-20 16:48:16 +01:00
  • 00e482c3a1 v0.8.4 Graham Esau 2021-09-19 10:43:29 +01:00
  • 7a8eeafde2 Add newline to attributes docs Graham Esau 2021-09-18 23:03:28 +01:00
  • 1d3541b4b1 Update changelog and docs Graham Esau 2021-09-18 23:00:14 +01:00
  • cec8751c82
    Merge pull request #78 from GREsau/validate Graham Esau 2021-09-18 21:25:15 +01:00
  • 63b3055e7b Fix indexmap tests for rust 1.37 Graham Esau 2021-09-17 23:53:46 +01:00
  • 605db3bba8 Emit compilation errors for duplicate validation attributes Graham Esau 2021-09-17 22:57:51 +01:00
  • af69a8ea11 Fix doc test Graham Esau 2021-04-24 13:43:45 +01:00
  • d99a96fc8a Add some doc comments Graham Esau 2021-04-24 11:46:07 +01:00
  • 7914593d89 Allow setting validation attributes via #[schemars(...)] Graham Esau 2021-04-18 22:17:53 +01:00
  • c013052f59 Support inline regex Graham Esau 2021-04-16 22:31:03 +01:00
  • 5f841f2e5c Refactoring Graham Esau 2021-04-16 16:53:15 +01:00
  • 4be21bd811 Refactor out "local_id" for type definitions Graham Esau 2021-04-16 14:23:10 +01:00
  • 9e507272da Process validation attributes in tuple structs Graham Esau 2021-04-16 13:56:26 +01:00
  • 31a5893d10 Process validation attributes in newtype structs Graham Esau 2021-04-16 12:30:52 +01:00
  • 60a9869448 Refactor out add_schema_as_property Graham Esau 2021-04-16 10:42:03 +01:00
  • 1a2dafc1a5 Handle required flattened Option fields Graham Esau 2021-04-15 18:11:28 +01:00
  • b68132f17d Merge branch 'master' into validate Graham Esau 2021-04-15 16:03:25 +01:00
  • 55b860428e Refactory of private functions Graham Esau 2021-04-15 13:34:04 +01:00
  • 5dc644000c Allow schema_with attr on enum variants Graham Esau 2021-04-10 15:16:16 +01:00
  • 2d38db903a Only process "crate" from schemars attr, not serde attr Graham Esau 2021-04-10 14:48:39 +01:00
  • 6d174a2efb Add "crate" to attribute docs ToC Graham Esau 2021-04-05 21:21:26 +01:00
  • 86e2844c93 v0.8.3 Graham Esau 2021-04-05 21:12:23 +01:00
  • b4a6aeb51b Update changelog Graham Esau 2021-04-05 21:08:26 +01:00
  • 9e2ba85772 Also implement JsonSchema for BytesMut Graham Esau 2021-04-05 20:44:01 +01:00
  • 0e3938798f Support Bytes (#68) Daniel Hahne 2020-12-28 09:01:23 +01:00
  • 9c68e080d6 Remove extraneous "and" from tuple schema names Graham Esau 2021-04-05 20:47:03 +01:00
  • b2b733ba5c
    Support for #[schemars(crate = "...")] (#80) Graham Esau 2021-04-05 19:34:28 +01:00
  • ebd7ff32ce More fixes for deriving JsonSchema inside macro Graham Esau 2021-04-05 16:40:20 +01:00
  • 4d3400152e
    Fix deriving JsonSchema inside macro (#79) Graham Esau 2021-04-05 16:15:34 +01:00
  • 6ab567f3a5 Read #[validate(...)] attributes Graham Esau 2021-03-29 16:38:55 +01:00
  • dada8582ee Fix rustc 1.37 build Graham Esau 2021-03-27 10:34:39 +00:00
  • 29dc025629 Clippy fixes Graham Esau 2021-03-27 00:45:06 +00:00
  • 61d64df57d v0.8.2 Graham Esau 2021-03-26 23:59:35 +00:00
  • 4c238605be Update changelog Graham Esau 2021-03-26 23:07:01 +00:00
  • ce4946afc1 Remove unnecessary macro usage Graham Esau 2021-03-26 22:55:20 +00:00
  • f0836d4415 Implement JsonSchema on Url Alastair Feille 2020-11-30 18:54:09 -06:00
  • 3a2b425998 Make docs examples a tiny bit prettier Graham Esau 2021-03-25 22:56:25 +00:00
  • 93435d519a Update docs Graham Esau 2021-03-25 22:51:51 +00:00
  • cb26e783dc Update changelog Graham Esau 2021-03-25 22:40:11 +00:00
  • 11d95b79e5
    Derive JsonSchema_repr (#76) Graham Esau 2021-03-25 22:36:28 +00:00
  • 7de2b2276f Prepare to update docs for schema_for_value! Graham Esau 2021-03-25 22:15:12 +00:00
  • c6588a3596 Update examples Graham Esau 2021-03-25 20:03:16 +00:00
  • 04996efeb3 Don't include number format in schema for value Graham Esau 2021-03-25 19:47:36 +00:00
  • 9b71b428cb Update changelog Graham Esau 2021-03-25 18:43:18 +00:00
  • f6482fd460
    Generate schema from any serializable value (#75) Graham Esau 2021-03-25 18:32:28 +00:00
  • 0957204bc1 Fix CI Graham Esau 2021-03-25 17:36:02 +00:00
  • c135fb41aa Don't run trybuild tests on rustc 1.37 Graham Esau 2021-03-25 17:30:28 +00:00
  • b502a04ab8 v0.8.1 Graham Esau 2021-03-23 20:18:20 +00:00
  • 32b3f77bf7 Implement JsonSchema for slices Graham Esau 2021-03-23 11:06:16 +00:00
  • 7bcd6a2a65 Ensure pending_schema_names is always cleaned up Graham Esau 2021-03-21 21:43:25 +00:00
  • 803c47bab3 Update examples (changed due to 6a3bba1e) Graham Esau 2021-03-21 21:25:13 +00:00
  • 77c7aa9beb Update changelog Graham Esau 2021-03-21 20:24:32 +00:00
  • 1017506ce6 Prevent stack overflow when using inline_subschemas Graham Esau 2021-03-21 20:09:32 +00:00
  • d85eec3b7a
    Fix clippy field_reassign_with_default in generated code (#65) Jan Michael Auer 2021-03-21 19:31:58 +01:00
  • addac6d386
    Make HashSet and BTreeSet use the uniqueItems keyword in their schema (#64) Alastair Feille 2021-03-21 09:43:58 -05:00
  • c4ef7bad22
    Fix #[schemars(with = ...)] alongside #[serde(transparent)] (#67) David Hotham 2021-03-21 13:56:24 +00:00
  • 1c9ecafd32 Bump MSRV to 1.37 Graham Esau 2021-03-21 13:25:55 +00:00
  • 94d75378f6 Add SchemaGenerator::definitions_mut() Graham Esau 2021-03-20 22:20:58 +00:00
  • 6a3bba1e86 Set additionalProperties to false on enums where appropriate Graham Esau 2021-03-20 18:45:29 +00:00
  • 3a7d7ad905 Apply some clippy suggestions Graham Esau 2021-03-19 23:20:16 +00:00
  • b8c548136a Fix styling of docs site Graham Esau 2020-09-27 12:23:28 +01:00
  • 755368fc3a v0.8.0 Graham Esau 2020-09-27 10:58:51 +01:00
  • 364d0e0192
    Add support to enforce inlining of all subschemas instead of using references. (#44) Alexander Berger 2020-09-25 19:50:54 +02:00
  • 40d9bfd517 Forbid unsafe code Graham Esau 2020-09-25 18:34:57 +01:00
  • b09217c5ad Fix broken link in readme Graham Esau 2020-09-24 20:52:20 +01:00
  • 5ddd44a9e5 Regenerate all test expected outputs Graham Esau 2020-09-24 20:47:46 +01:00
  • 858543aca1 Revert buggy refactor Graham Esau 2020-09-24 20:42:26 +01:00
  • 460976e765 Add documentation comments, rename Visitor2 Graham Esau 2020-09-24 20:32:35 +01:00
  • 0c02525fb9 Trim leading asterisks from doc block comments Graham Esau 2020-09-21 09:55:31 +01:00
  • ac8dd4c368 Fix build (hopefully) Graham Esau 2020-09-21 08:46:28 +01:00
  • 5ca2d08013 Bump MSRV to 1.36.0 Graham Esau 2020-09-21 08:42:07 +01:00
  • 7a1e02eefd Pin dyn-clone to v1.0.1 Graham Esau 2020-09-21 08:03:10 +01:00
  • 37f0e4bc71 v0.8.0-alpha-4 Graham Esau 2020-06-12 21:38:21 +01:00
  • 8f85178a7a Add SetSingleExample visitor for openapi 3.0 Graham Esau 2020-06-12 21:38:13 +01:00
  • ca7c66eb08 v0.8.0-alpha-3 Graham Esau 2020-06-12 20:43:16 +01:00
  • 260cd99293 v0.8.0-alpha-2 Graham Esau 2020-06-07 22:33:57 +01:00
  • a618a90eb4
    Adding IndexMap under feature flag preserve_order (#36) Ralph Bisschops 2020-06-07 23:24:36 +02:00
  • a02947462d Split Visitor into two traits Graham Esau 2020-06-07 21:46:08 +01:00
  • 656a70e02c Allow mutable Visitors Graham Esau 2020-06-05 23:51:54 +01:00
  • 475a751b70 Require Visitors to implement Clone Graham Esau 2020-06-05 23:48:03 +01:00
  • 5b316fb31b
    Removed Any bound from Visitor (#41) Ferenc Tamás 2020-06-06 00:45:17 +02:00
  • 4197bf4183 Add test for invalid schemars attributes Graham Esau 2020-06-05 17:18:48 +01:00
  • b0a2f9994b Error on unknown schemars attr items Graham Esau 2020-06-04 19:39:57 +01:00
  • a829267111 Add Visitor trait, update changelog Graham Esau 2020-06-04 19:23:36 +01:00
  • 4b37f96c99 v0.7.6 Graham Esau 2020-05-17 18:35:03 +01:00
  • be6cd1080d Allow unused braces in macro output. Graham Esau 2020-05-17 17:22:42 +01:00
  • f9b14f7b00 Update docs and changelog Graham Esau 2020-05-17 17:15:40 +01:00
  • e259955809 Attribute for defining examples (#23) Graham Esau 2020-05-17 16:41:19 +01:00
  • 19b9bef395 v0.7.5 Graham Esau 2020-05-17 13:46:09 +01:00
  • 61c106fd5b Update docs and changelog Graham Esau 2020-05-17 11:45:36 +01:00
  • 75419fa3d5 Fix rustc 1.32 build Graham Esau 2020-05-17 11:27:11 +01:00
  • 1b42dc7e3e Allow overriding title/desc from doc comments (#13) Graham Esau 2020-05-17 11:19:48 +01:00