Commit graph

514 commits

Author SHA1 Message Date
Graham Esau
8d0ccc89db Remove trait bounds from Map/Set JsonSchema impls.
They are unnecessary as we never create/use any instances of these types
2019-12-27 21:18:18 +00:00
Graham Esau
4b9578ec2b v0.6.3 2019-12-27 18:49:25 +00:00
Graham Esau
c9d1f34243 v0.6.2 2019-12-27 18:29:48 +00:00
Graham Esau
39dc08e34e Update changelog 2019-12-27 18:10:33 +00:00
Graham Esau
22e7d49a84 Fix typo in readme 2019-12-27 18:04:33 +00:00
Graham Esau
460afe9b6e Update CI badge 2019-12-27 17:58:05 +00:00
Graham Esau
e299522573 Delete .travis.yml 2019-12-27 17:50:18 +00:00
Graham Esau
805fb243b2
Add github workflow for CI 2019-12-27 17:45:55 +00:00
Graham Esau
0ae2d48fba Rename derive_json_schema feature to impl_json_schema 2019-12-27 17:13:32 +00:00
Graham Esau
1c0f626e3f Add overview to docs site 2019-12-27 17:06:46 +00:00
Graham Esau
40f459603a Add link to website 2019-12-27 16:47:50 +00:00
Graham Esau
e25791dddf Add generic type to remote derive example 2019-12-27 16:25:50 +00:00
Graham Esau
be92d4da5f Clarify generic type behaviour in with attribute 2019-12-27 16:12:46 +00:00
Graham Esau
781f40b061 Improve schema naming for deriving on remote types 2019-12-27 15:37:59 +00:00
Graham Esau
ea28450c30 Add test for remote deriving with generic types 2019-12-27 14:38:58 +00:00
Graham Esau
8d40625f10 Add example for remote deriving JsonSchema 2019-12-26 23:18:09 +00:00
Graham Esau
b11536e527 Add example for schemars attributes 2019-12-26 22:20:53 +00:00
Graham Esau
601fc3aaad Add example for custom schema setings 2019-12-26 22:00:47 +00:00
Graham Esau
f387a0ec56 Add examples to docs 2019-12-26 21:34:08 +00:00
Graham Esau
d67abbdbb1 Update examples 2019-12-26 20:39:18 +00:00
Graham Esau
26346612b5 Add docs on generating schemas 2019-12-26 18:26:14 +00:00
Graham Esau
ebb20130f7 Tweak docs permalinks 2019-12-26 17:03:48 +00:00
Graham Esau
01966ba9bf Fix internal docs link 2019-12-26 16:52:52 +00:00
Graham Esau
583edc08ca Document implementing JsonSchema manually 2019-12-26 16:43:58 +00:00
Graham Esau
64b0f79851 Add docs permalinks 2019-12-26 14:35:34 +00:00
Graham Esau
938d273d42 Document feature flags 2019-12-24 23:20:11 +00:00
Graham Esau
e29f10f6b3 Document more attributes 2019-12-24 22:59:26 +00:00
Graham Esau
0358a4e141 Document some more attributes 2019-12-24 22:04:20 +00:00
Graham Esau
aa8a7a4a80 Write some more docs 2019-12-23 22:07:21 +00:00
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