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

Add description support for object field. #492

Merged
merged 1 commit into from
Feb 19, 2023

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Feb 19, 2023

This commit add description support for ToSchema field with value_type = Object.

 #[derive(ToSchema)]
 struct Value {
     /// This is object value
     #[schema(value_type = Object)]
     object: String,
 }

Fixes #491

This commit add description support for `ToSchema` field with
`value_type = Object`.
```rust
 #[derive(ToSchema)]
 struct Value {
     /// This is object value
     #[schema(value_type = Object)]
     object: String,
 }
```
@juhaku juhaku merged commit 3705e4e into master Feb 19, 2023
@juhaku juhaku deleted the add-object-field-description-support branch February 19, 2023 00:53
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.

ToSchema field descriptions with some field-specific attributes
1 participant