Skip to content

Support for YAML struct tags instead of JSON. #849

@liamkinne

Description

@liamkinne

For my use case I'd like the struct tags to be for YAML instead of JSON. I've tried 'applicaion/yaml' in the response type of the API spec had a look at the code and it doesn't seem this project supports that out of the box.

What I get

type Device struct {
	Messages *[]Message `json:"messages,omitempty"`
}

What I want

type Device struct {
	Messages *[]Message `yaml:"messages,omitempty"`
}

If this isn't already a feature, or on the road map I am happy to fork and give implementing this a crack. Just wanted to get a second pair of eyes to confirm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions