Skip to content

openapi2.T does not specify the serialization and deserialization field names in the yaml format #368

@sydiesel

Description

@sydiesel

e.g

type T struct {
	ExternalDocs        *openapi3.ExternalDocs         `json:"externalDocs,omitempty"`
}

can only recognize like

externaldocs:
   description: "Find out more about Swagger"
   url: "http://swagger.io"

but the official demo definition should be :

externalDocs:
   description: "Find out more about Swagger"
   url: "http://swagger.io"

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