Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix title on unnamed struct and references #1101

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Oct 7, 2024

This commit fixes title attribute on unnamed structs having Vec<T> content and fields having $ref type.

Fields with $ref type to another having title attribute will result allOf type containing the $ref as item and title will be added to the allOf.

Fixes #850

This commit fixes `title` attribute on unnamed structs having `Vec<T>`
content and fields having `$ref` type.

Fields with `$ref` type to another having `title` attribute will result
`allOf` type containing the `$ref` as item and `title` will be added to
the `allOf`.

Fixes #850
@juhaku juhaku merged commit 2f09ae4 into master Oct 7, 2024
22 checks passed
@juhaku juhaku deleted the fix-title-unnamed-struct branch October 7, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

Using #[schema(title = ...)] does not work for new type / tuple structs of type Vec<T>
1 participant