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

Inline tag not working with Sheriff #60

Open
zengxs opened this issue Dec 22, 2024 · 0 comments
Open

Inline tag not working with Sheriff #60

zengxs opened this issue Dec 22, 2024 · 0 comments

Comments

@zengxs
Copy link

zengxs commented Dec 22, 2024

Hello,

I encountered an issue when using Sheriff with inline tags. Consider the following code:

type Post struct {
    mgm.DefaultModel `json:",inline" bson:",inline" groups:"api"`
}

The inline tag does not seem to work as expected. Instead of merging the fields of mgm.DefaultModel into the parent struct, it outputs mgm.DefaultModel as a standalone DefaultModel property.

Is there a way to make inline tags function correctly with Sheriff?

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant