Commit graph

522 commits

Author SHA1 Message Date
Graham Esau
79e395d101 Set openapi3 meta-schema 2019-10-27 11:35:07 +00:00
Graham Esau
993a52900e Run tests on rust 1.13.0 2019-10-27 11:34:28 +00:00
Graham Esau
4750134611 v0.4.0 2019-10-23 22:36:01 +01:00
Graham Esau
1d8d996983 v0.4.0 2019-10-23 22:34:40 +01:00
Graham Esau
ec42b51bf5 Regenerate test expected outputs 2019-10-23 18:26:06 +01:00
Graham Esau
ef7ec38696 Introduce separate RootSchema type 2019-10-23 18:23:12 +01:00
Graham Esau
5ede1c1c3a Clean up README 2019-10-22 22:58:47 +01:00
Graham Esau
fba1753bba Undo last change affecting internal tagged enums.
It broke things!
2019-10-22 22:58:24 +01:00
Graham Esau
792fbbb86e Add more info to README 2019-10-22 22:49:24 +01:00
Graham Esau
5c307b92fb Do not implement JsonSchema for internal types by default.
It will be implemented only if the derive_json_schema feature is enabled
2019-10-21 21:45:29 +01:00
Graham Esau
f8737be9c4 Include license/readme in subdirectories 2019-10-21 21:23:41 +01:00
Graham Esau
74c799f478 Update travis config 2019-10-21 21:15:19 +01:00
Graham Esau
19c0937edc Add travis CI 2019-10-21 21:11:37 +01:00
Graham Esau
bde26bcc47 v0.3.0 2019-10-21 19:28:45 +01:00
Graham Esau
67028aceed Add more doc comments 2019-10-21 19:04:16 +01:00
Graham Esau
aaeb46db0d Add more doc comments 2019-10-20 22:34:25 +01:00
Graham Esau
9223ca1ed9 Add more doc comments 2019-10-20 19:36:49 +01:00
Graham Esau
9a85e0b2a1 Start adding doc comments 2019-10-20 15:46:09 +01:00
Graham Esau
b40c160ec2 Update code example in readme 2019-10-20 14:35:29 +01:00
Graham Esau
317c317e95 Make schema_for macro pattern stricter 2019-10-20 14:34:15 +01:00
Graham Esau
fb6bb85cb7 Remove JsonSchemaError/Result 2019-10-20 14:33:54 +01:00
Graham Esau
18c2d417e3 Fix schema generation for flatten Options 2019-10-19 21:03:34 +01:00
Graham Esau
5bf8b30753 Schema generation now never returns an error 2019-10-19 20:33:26 +01:00
Graham Esau
8880fb3961 v0.2.0 2019-10-14 20:19:27 +01:00
Graham Esau
2bc3957cb8 Set readOnly/writeOnly on properties 2019-10-14 20:00:57 +01:00
Graham Esau
68ddfa310f Add default, deprecated, readOnly, writeOnly properties 2019-10-13 23:01:48 +01:00
Graham Esau
f38f58d1e8 Move root schema definitions into Metadata 2019-10-13 22:42:34 +01:00
Graham Esau
c78d721fc5 Further reduce memory footprint of SchemaObject.
More fields are now wrapped in Option<Box<_>>, reducing size of JsonSchema (depending on system) from 424 to 240 bytes.
2019-10-13 22:38:20 +01:00
Graham Esau
72629a3c37 Reduce memory footprint of SchemaObject.
Nested validation structs are now wrapped in Option<Box<_>>, reducing size of JsonSchema (depending on system) from 688 to 424 bytes.
2019-10-13 20:42:29 +01:00
Graham Esau
5a82498e28 Change $ref to be part of a SchemaObject.
This allows other keyworlds to be used alongside $ref, as allowed in Json Schema 2019-09
2019-10-13 18:30:05 +01:00
Graham Esau
7d162a8fb5 Update syn/quote/proc-macro2 to 1.0 2019-10-12 12:56:51 +01:00
Graham Esau
505c369f27 Regenerate integration test expected json 2019-10-07 20:35:40 +01:00
Graham Esau
7e8f5b6785 v0.1.9 2019-10-06 20:38:19 +01:00
Graham Esau
9a202a34b8 v0.1.9 2019-10-06 20:36:52 +01:00
Graham Esau
a555d7739a Fix schemas for internally tagged newtype variants
Fixes #2
2019-10-06 20:22:27 +01:00
Graham Esau
01632b37fc Always enable syn extra-traits feature.
ExprPath's PartialEq implementation is required by schemars_derive
2019-10-06 17:15:59 +01:00
Graham Esau
f1f0ad5692 Add list of TODOs to readme 2019-09-15 21:27:38 +01:00
Graham Esau
8a507f38a1 Add example 2019-09-15 16:29:57 +01:00
Graham Esau
4962e1f731 Add example to readme 2019-09-15 16:07:23 +01:00
Graham Esau
13267d37d7 Simplify schema for Options 2019-09-14 22:44:05 +01:00
Graham Esau
d7a214526f Prevent possibility of infinite loop 2019-09-14 20:36:59 +01:00
Graham Esau
b9e9360b5c Refactor out some unneeded clones 2019-09-14 20:30:03 +01:00
Graham Esau
49b2d1f89d Add const 2019-09-14 18:54:07 +01:00
Graham Esau
00f79281db Refactor schema flattening 2019-09-14 18:17:19 +01:00
Graham Esau
88a8e0a706 Add strongly-typed validation fields 2019-09-12 22:49:38 +01:00
Graham Esau
5de6bcfdef Exclude skipped fields/variants from json schema 2019-09-12 19:07:25 +01:00
Graham Esau
709ba7b62e Enable eriving JsonSchema when fields are in remote crates 2019-09-12 18:02:37 +01:00
Graham Esau
8d68e36f7c Add unit test for serde attribute processing 2019-09-08 23:13:26 +01:00
Graham Esau
af1fa5fe9e Do not ignore all serde attributes if there are also schemars attributes 2019-09-08 22:46:18 +01:00
Graham Esau
0304fefb61 v0.1.8 2019-09-08 14:52:54 +01:00