Commit graph

131 commits

Author SHA1 Message Date
Graham Esau
e6c178117c Implement JsonSchema for Weak/Wrapping/Reverse 2019-10-27 19:02:38 +00:00
Graham Esau
e11d5e5a98 Implement JsonSchema for std::time types 2019-10-27 18:57:36 +00:00
Graham Esau
155190c9ab Implement JsonSchema for Result<T,E> 2019-10-27 18:40:57 +00:00
Graham Esau
3d68dbe929 v0.4.1 2019-10-27 12:19:19 +00:00
Graham Esau
9324fdd531 Don't run CI commands in virtual workspace
Feature flags are currently ignored in root of virtual workspace, and cause a compile error in nightly.
2019-10-27 12:13:17 +00:00
Graham Esau
20da4d21a2 Min rustc version is 1.32 2019-10-27 12:06:14 +00:00
Graham Esau
ff90f96b2d Remove JsonSchema impl for Infallible
This isn't used in serde, and requires rust 1.34+
2019-10-27 11:50:05 +00:00
Graham Esau
a028807633 Run tests on 1.31.0, not 1.13.0 2019-10-27 11:40:45 +00:00
Graham Esau
550fee7a4c Update docs 2019-10-27 11:35:17 +00:00
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