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
|
7d162a8fb5
|
Update syn/quote/proc-macro2 to 1.0
|
2019-10-12 12:56:51 +01:00 |
|
Graham Esau
|
a555d7739a
|
Fix schemas for internally tagged newtype variants
Fixes #2
|
2019-10-06 20:22:27 +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
|
3f5f7cf0a3
|
Enable deriving JsonSchema for unit/newtype/tuple structs
|
2019-09-07 16:36:12 +01:00 |
|
Graham Esau
|
07f4f68a02
|
Add tests for tuple enum variants
|
2019-09-07 15:25:06 +01:00 |
|
Graham Esau
|
717e3baed9
|
Clippy fixes
|
2019-09-03 19:28:17 +01:00 |
|
Graham Esau
|
870dc3a2de
|
Rename MakeSchema to JsonSchema
|
2019-08-11 14:35:26 +01:00 |
|
Graham Esau
|
a3076dde63
|
Internally tagged enums
|
2019-08-10 00:41:04 +01:00 |
|
Graham Esau
|
936fb8c96e
|
Fix schema generation for complex enum variants
|
2019-08-08 22:45:21 +01:00 |
|
Graham Esau
|
8afce08c54
|
Slightly abstract away map/set types
|
2019-08-08 18:43:15 +01:00 |
|
Graham Esau
|
998e6c9f0f
|
Set "required" schema attribute
|
2019-08-08 18:34:47 +01:00 |
|
Graham Esau
|
6b64cedb91
|
Process #[schemars] attributes
|
2019-08-08 08:24:30 +01:00 |
|
Graham Esau
|
1d0fd18c9e
|
Enable renaming schemas using attribute on struct
|
2019-08-07 23:03:54 +01:00 |
|
Graham Esau
|
d14db450cf
|
Test for default name of struct with type params
|
2019-08-07 13:32:44 +01:00 |
|
Graham Esau
|
54cfd2ba0e
|
Support #[serde(flatten)]ed structs
|
2019-08-07 08:19:43 +01:00 |
|
Graham Esau
|
bd750714a0
|
Fix up schema naming - nightly no longer required!
|
2019-08-06 23:06:22 +01:00 |
|
Graham Esau
|
51ed13218c
|
Allow making a schema to fail by returning an Err
|
2019-08-06 20:56:04 +01:00 |
|
Graham Esau
|
4a9fdd3334
|
Support untagged enums
|
2019-08-05 20:40:06 +01:00 |
|
Graham Esau
|
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!
|
2019-08-05 18:58:28 +01:00 |
|
Graham Esau
|
d79f0f56b0
|
Schema now implements MakeSchema
|
2019-08-05 13:16:06 +01:00 |
|
Graham Esau
|
d90a29f3f8
|
Struct-like enum variants work!
|
2019-08-04 22:52:03 +01:00 |
|
Graham Esau
|
8b034f4dd8
|
Tuple enums
|
2019-08-04 22:45:05 +01:00 |
|
Graham Esau
|
3be97a7da4
|
Handle newtype enum variants
|
2019-08-04 22:28:33 +01:00 |
|
Graham Esau
|
d628f7c162
|
Refactoring derive macros
|
2019-08-04 21:35:01 +01:00 |
|
Graham Esau
|
d1a319c5f2
|
Generate schemas for simple enums
|
2019-08-04 19:49:41 +01:00 |
|
Graham Esau
|
48d6cda0b8
|
Use serde internals to determine property names
|
2019-08-04 18:43:20 +01:00 |
|
Graham Esau
|
5228ec65e5
|
Allow deriving MakeSchema on simple structs!
|
2019-08-04 16:44:09 +01:00 |
|