8000 feature: support custom swagger type · Issue #1183 · go-swagger/go-swagger · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
feature: support custom swagger type #1183
Closed
@imiskolee

Description

@imiskolee

if we has a custom MarshalJSON/MarshalXML struct.input data type maybe cant matched to out data type.

the feature can be custom a data type ,its Like

//swagger:type string
type OwnerInput struct {

}

func (c *OwnerInput)UnmarshalJSON(data []byte) error {
  //in here,unmarshal a string to a golang struct
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    generate specRelated to spec generation from codeneeds testingNeeds more testing for issue confirmation/qualification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0