Graham Esau
3c0ee3f703
Move css overrides out of custom.scss
2019-12-23 21:20:27 +00:00
Graham Esau
d30238c981
Do not pass container attributes through enums/variants
...
When deriving JsonSchema over a struct-style enum variant, do not apply the enum's container attributes to the variant. This couldn't cause any problems in practice because the only container attribute we explicitly set is "default", which cannot be set on an enum.
2019-12-23 20:50:26 +00:00
Graham Esau
fc592e5dd7
Ensure root schemas do not have a $ref property.
...
If necessary, wrap the `$ref` in an `allOf`.
2019-12-16 21:36:20 +00:00
Graham Esau
d7c010d9c2
Tweak docs site styling
2019-12-15 00:16:41 +00:00
Graham Esau
fcd38ed76a
Add placeholder pages for docs site
2019-12-14 16:52:41 +00:00
Graham Esau
ccb7f48c3b
Tweak docs site styling
2019-12-14 15:35:56 +00:00
Graham Esau
43ac3fddb6
Add fancy badges to docs site
2019-12-11 20:11:48 +00:00
Graham Esau
5a0800256f
Fix github pages build warning
2019-12-10 22:39:32 +00:00
Graham Esau
f5c2798891
Add placeholder docs
2019-12-10 22:20:33 +00:00
Graham Esau
88a43d7476
Set theme jekyll-theme-minimal
2019-12-10 21:39:04 +00:00
Graham Esau
a1b6c0ebd4
Create temp file in docs folder
2019-12-10 21:37:58 +00:00
Graham Esau
b5e1821f3a
Don't include "doc" in list of helper attributes
2019-12-09 21:56:19 +00:00
Graham Esau
f55572f735
Fix indentation
...
It should be 4 spaces, not 2
2019-12-09 21:49:47 +00:00
Graham Esau
e151d21d6d
v0.6.1
...
Fix a compile error that can occur when deriving `JsonSchema` from a project that doesn't reference serde_json
2019-12-09 21:25:37 +00:00
Graham Esau
351ff1572a
v0.6.0
2019-12-09 21:06:44 +00:00
Graham Esau
3fb625e08c
Refactoring of schemars_derive
2019-12-09 20:57:38 +00:00
Graham Esau
dca9e2d920
Pass fewer attributes to serde_derive_internals
2019-12-09 18:43:43 +00:00
Graham Esau
3e5a054793
Update README example output
2019-12-09 17:37:58 +00:00
Graham Esau
1f021fa5ae
Format project with rustfmt
2019-12-09 17:37:49 +00:00
Graham Esau
e4d69f89e7
v0.6.0-alpha-2
2019-12-09 13:07:39 +00:00
Graham Esau
26c4099bbe
Do not serialize schema default if it would be skipped by skip_serializing_if
attribute
2019-12-09 12:34:28 +00:00
Graham Esau
8301a38b8f
v0.6.0-alpha
2019-12-09 11:44:00 +00:00
Graham Esau
ae397b228d
Do not use explicit #[doc] comments in test
...
This breaks the build on nightly
2019-12-08 22:47:33 +00:00
Graham Esau
9579d6a94c
Fix rustc 1.32.0 build
2019-12-08 22:34:48 +00:00
Graham Esau
4c4fb1cf36
Rewrite attribute parsing logic
2019-12-08 22:28:49 +00:00
Graham Esau
1bdbaaf082
Update changelog
2019-12-08 20:08:28 +00:00
Graham Esau
b748a90c3f
Respect serialize_with attr when serializing default
2019-12-08 20:04:54 +00:00
Graham Esau
7e23e2ad7a
Set "default" on generated schemas ( #6 )
2019-12-08 15:17:08 +00:00
Graham Esau
81eb53b590
Add test for defaults in derived schemas
...
Currently ignored as defaults are not yet implemented.
2019-12-08 13:12:09 +00:00
Graham Esau
1e9f36122d
Minor refactoring/cleanup
2019-12-08 12:03:46 +00:00
Graham Esau
ba79de696a
Document SchemaGenerator.make_extensible()
2019-12-08 12:03:46 +00:00
Graham Esau
89d3024beb
Do not inline referenceable schemas to set nullable
2019-12-08 12:03:46 +00:00
Graham Esau
529e3d4611
v0.6.0-doc
2019-12-08 12:03:46 +00:00
Graham Esau
d92b741b9b
Get title/description from #[doc] on enum variants
2019-12-08 12:03:46 +00:00
Graham Esau
a1c3daaed8
Join adjacent lines in descriptions from #[doc]s
2019-12-08 12:03:46 +00:00
Graham Esau
feefd418d4
Set schema title and description from #[doc]s
...
Work in progress
2019-12-08 12:03:46 +00:00
Graham Esau
c630264ef9
v0.5.1
2019-10-30 22:25:03 +00:00
Graham Esau
96870ecabb
Remove "work in progress" note from readme
2019-10-30 22:13:03 +00:00
Graham Esau
1044718dbd
Add missing doc comment for "title"
2019-10-30 22:11:53 +00:00
Graham Esau
ef120bc3fc
v0.5.0
2019-10-30 19:58:45 +00:00
Graham Esau
5503f0697f
Implement JsonSchema for Bound
2019-10-30 19:39:44 +00:00
Graham Esau
3f56d6b282
Give unsigned int schemas explicit minimum value
...
Update tests
2019-10-30 19:34:05 +00:00
Graham Esau
ae716de64a
Give unsigned int schemas explicit minimum value
2019-10-30 19:28:11 +00:00
Graham Esau
50f00be97b
Implement JsonSchema for nonzero signed ints
2019-10-29 21:40:50 +00:00
Graham Esau
a35b469475
Implement JsonSchema for nonzero unsigned ints
2019-10-29 11:25:01 +00:00
Graham Esau
cc896739d3
Implement JsonSchema for atomics
2019-10-28 22:46:51 +00:00
Graham Esau
60bfc6ee49
Make prepositions/conjunctions in generated schema names lowercase
2019-10-27 22:48:35 +00:00
Graham Esau
09d76c93e4
Schemas with different "format"s should have different names
2019-10-27 22:42:14 +00:00
Graham Esau
fe861ac3a1
Implement JsonSchema for Range/RangeInclusive
2019-10-27 22:30:01 +00:00
Graham Esau
b334bef91a
Implement JsonSchema for std::net types
2019-10-27 21:24:29 +00:00