Update docs for v1

This commit is contained in:
Graham Esau 2024-06-09 19:48:35 +01:00
parent 692958353d
commit 91ee3f915c
5 changed files with 34 additions and 27 deletions

View file

@ -63,7 +63,7 @@ TABLE OF CONTENTS
</h3>
Set on a struct, enum, field or variant to use the given name in the generated schema instead of the Rust name. When used on a struct or enum, the given name will be used as the title for root schemas, and the key within the root's `definitions` property for subschemas.
Set on a struct, enum, field or variant to use the given name in the generated schema instead of the Rust name. When used on a struct or enum, the given name will be used as the title for root schemas, and the key within the root's `$defs` property for subschemas.
If set on a struct or enum with generic type parameters, then the given name may contain them enclosed in curly braces (e.g. `{T}`) and they will be replaced with the concrete type names when the schema is generated.