Commit graph

  • 6cf9343657 Set format property on integers Graham Esau 2019-09-08 14:20:57 +01:00
  • a236d7aee0 Implement JsonSchema for chrono types Graham Esau 2019-09-08 13:29:45 +01:00
  • 7285dde99a Add tuple unit test Graham Esau 2019-09-07 23:45:40 +01:00
  • 3fcdc72662 Add unit tests for map JsonSchemas Graham Esau 2019-09-07 23:23:01 +01:00
  • 45e37a9c81 Add unit tests for Option schemas Graham Esau 2019-09-07 22:39:13 +01:00
  • 00148bdf57 Split JsonSchema implementations into separate files Graham Esau 2019-09-07 21:58:31 +01:00
  • a68b105450 v0.1.7 Graham Esau 2019-09-07 16:36:45 +01:00
  • 3f5f7cf0a3 Enable deriving JsonSchema for unit/newtype/tuple structs Graham Esau 2019-09-07 16:36:12 +01:00
  • 07f4f68a02 Add tests for tuple enum variants Graham Esau 2019-09-07 15:25:06 +01:00
  • c2e8389e93 Fix Option<T> schema generation sometimes producing a schema that is not referenced Graham Esau 2019-09-03 19:47:39 +01:00
  • 717e3baed9 Clippy fixes Graham Esau 2019-09-03 19:28:17 +01:00
  • 9938c498a0 Add workspace cargo.toml Graham Esau 2019-09-03 19:26:37 +01:00
  • 10ab02f167 Remove explicit lifetime from get_schema_object Graham Esau 2019-08-27 21:46:27 +01:00
  • f45181aac3 0.1.6 - implement JsonSchema for unsized types Graham Esau 2019-08-11 17:58:07 +01:00
  • 6eba5df7b3 Fix schemars_derive dependency Graham Esau 2019-08-11 14:55:15 +01:00
  • a00f488559 Make get_schema_object public Graham Esau 2019-08-11 14:46:03 +01:00
  • 870dc3a2de Rename MakeSchema to JsonSchema Graham Esau 2019-08-11 14:35:26 +01:00
  • 58e169b866 0.1.3 Graham Esau 2019-08-10 00:41:48 +01:00
  • a3076dde63 Internally tagged enums Graham Esau 2019-08-10 00:41:04 +01:00
  • b0ae29094e Add enum tests Graham Esau 2019-08-10 00:09:40 +01:00
  • 936fb8c96e Fix schema generation for complex enum variants Graham Esau 2019-08-08 22:45:21 +01:00
  • 94250fa037 Rename SchemaRef to Ref Graham Esau 2019-08-08 22:00:15 +01:00
  • 87b56f2a77 Add package info to Cargo.toml Graham Esau 2019-08-08 19:00:48 +01:00
  • cf661afa13 Add package info to Cargo.toml Graham Esau 2019-08-08 18:50:41 +01:00
  • 8afce08c54 Slightly abstract away map/set types Graham Esau 2019-08-08 18:43:15 +01:00
  • 998e6c9f0f Set "required" schema attribute Graham Esau 2019-08-08 18:34:47 +01:00
  • 6b64cedb91 Process #[schemars] attributes Graham Esau 2019-08-08 08:24:30 +01:00
  • 1d0fd18c9e Enable renaming schemas using attribute on struct Graham Esau 2019-08-07 23:03:54 +01:00
  • 67d44533d6 Reorganise tests Graham Esau 2019-08-07 19:27:32 +01:00
  • d14db450cf Test for default name of struct with type params Graham Esau 2019-08-07 13:32:44 +01:00
  • 54cfd2ba0e Support #[serde(flatten)]ed structs Graham Esau 2019-08-07 08:19:43 +01:00
  • bd750714a0 Fix up schema naming - nightly no longer required! Graham Esau 2019-08-06 23:06:22 +01:00
  • 51ed13218c Allow making a schema to fail by returning an Err Graham Esau 2019-08-06 20:56:04 +01:00
  • 2aa1835240 Add test for flattened structs (currently ignored) Graham Esau 2019-08-06 18:57:36 +01:00
  • 933eb1ac40 Use pretty_assertions in tests Graham Esau 2019-08-06 08:55:25 +01:00
  • 70c8d0f763 Add test for openapi3-compatible schema generation Graham Esau 2019-08-06 08:42:43 +01:00
  • 48465b51cf Refactor nullable schema generation Graham Esau 2019-08-06 07:48:44 +01:00
  • 650c434c1a Ensure all schema types are set to nullable when appropriate Graham Esau 2019-08-06 00:52:06 +01:00
  • 1f514f2be7 Add some config for openapi3 compatibility Graham Esau 2019-08-05 23:30:53 +01:00
  • ef5c584118 Add schema_for macro Graham Esau 2019-08-05 21:20:16 +01:00
  • 463ba518b6 Refactor subschema generation Graham Esau 2019-08-05 21:05:31 +01:00
  • 4a9fdd3334 Support untagged enums Graham Esau 2019-08-05 20:40:06 +01:00
  • c552e6d208 Change some derived traits in model structs Graham Esau 2019-08-05 20:05:31 +01:00
  • fc346da692 Add test for schema generation.This test will frequently fail as new features/fixes are implemented - but at least it gives an easy way of visualising changes! Graham Esau 2019-08-05 18:58:19 +01:00
  • 076cf423c3
    Fix error in map schema generation Graham Esau 2019-08-05 14:30:44 +01:00
  • d79f0f56b0 Schema now implements MakeSchema Graham Esau 2019-08-05 13:16:06 +01:00
  • d90a29f3f8 Struct-like enum variants work! Graham Esau 2019-08-04 22:52:03 +01:00
  • 8b034f4dd8 Tuple enums Graham Esau 2019-08-04 22:45:05 +01:00
  • 3be97a7da4 Handle newtype enum variants Graham Esau 2019-08-04 22:28:33 +01:00
  • d628f7c162 Refactoring derive macros Graham Esau 2019-08-04 21:35:01 +01:00
  • 38c8b2d911 Tuples! Graham Esau 2019-08-04 20:43:02 +01:00
  • d1a319c5f2 Generate schemas for simple enums Graham Esau 2019-08-04 19:49:41 +01:00
  • 48d6cda0b8 Use serde internals to determine property names Graham Esau 2019-08-04 18:43:20 +01:00
  • 2592fa388f Fix loop termination condition in make_unique_name Graham Esau 2019-08-04 16:55:59 +01:00
  • e01c47da88 Merge branch 'master' of https://github.com/GREsau/schemars Graham Esau 2019-08-04 16:50:31 +01:00
  • 28403e8eaf
    Initial commit Graham Esau 2019-08-04 16:48:29 +01:00
  • 5228ec65e5 Allow deriving MakeSchema on simple structs! Graham Esau 2019-08-04 16:44:09 +01:00
  • fcb9d5d1c0 Derive PartialEq on Schema structs Graham Esau 2019-08-04 13:48:16 +01:00
  • cbbc883038 Change generates_ref_schema default to true Graham Esau 2019-08-04 13:42:22 +01:00
  • 354c3aa98f Renames Graham Esau 2019-08-04 13:32:00 +01:00
  • 21a29dc6b5 Remove various 'static bounds Graham Esau 2019-08-04 12:30:16 +01:00
  • 4f9956631e Enforce unique subschema names Graham Esau 2019-08-04 10:11:56 +01:00
  • 2e580cb914 Change override_schema_name to schema_name Graham Esau 2019-08-04 09:20:10 +01:00
  • 42013cff01 Allow opting out of ref schema generation Graham Esau 2019-08-04 01:45:51 +01:00
  • f4ca23ddeb Add SchemaGenerator Graham Esau 2019-08-04 01:26:04 +01:00
  • b3924feb87 Extend SchemaObject Graham Esau 2019-08-03 21:22:21 +01:00
  • 3c03d910ca Allow boolean "trivial" schemas Graham Esau 2019-08-03 19:16:30 +01:00
  • 1cc9bb5564 Simplify generated schema for Map types Graham Esau 2019-08-03 18:35:36 +01:00
  • c6bd03435d Move into schemars subdirectory Graham Esau 2019-08-03 18:34:01 +01:00
  • 4a1afb7574 Add a few more MakeSchema implementations Graham Esau 2019-08-03 18:30:14 +01:00
  • 3a321a901b Initial commit Graham Esau 2019-08-03 17:45:57 +01:00