()
| 553 | } |
| 554 | |
| 555 | func (p *Param) MarshalJSON() ([]byte, error) { |
| 556 | return marshalJSON([]jsonFieldInfo{ |
| 557 | {"$ref", p.Ref, omitEmpty}, |
| 558 | {"name", p.Name, omitEmpty}, |
| 559 | {"in", p.In, omitEmpty}, |
| 560 | {"description", p.Description, omitEmpty}, |
| 561 | {"required", p.Required, omitEmpty}, |
| 562 | {"deprecated", p.Deprecated, omitEmpty}, |
| 563 | {"allowEmptyValue", p.AllowEmptyValue, omitEmpty}, |
| 564 | {"style", p.Style, omitEmpty}, |
| 565 | {"explode", p.Explode, omitEmpty}, |
| 566 | {"allowReserved", p.AllowReserved, omitEmpty}, |
| 567 | {"schema", p.Schema, omitEmpty}, |
| 568 | {"example", p.Example, omitNil}, |
| 569 | {"examples", p.Examples, omitEmpty}, |
| 570 | }, p.Extensions) |
| 571 | } |
| 572 | |
| 573 | // Header object follows the structure of the Parameter Object with the |
| 574 | // following changes: |
nothing calls this directly
no test coverage detected