Skip to content

Inline tag not working with Sheriff #60

@zengxs

Description

@zengxs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions