Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add binary marshaler interface #1030

Merged
merged 4 commits into from
May 5, 2017
Merged

Conversation

casualjim
Copy link
Member

No description provided.

return swag.WriteJSON(m)
}

func (m *Item) UnmarshalBinary(b []byte) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method Item.UnmarshalBinary should have comment or be unexported

@@ -54,3 +55,19 @@ func (m *Item) validateDescription(formats strfmt.Registry) error {

return nil
}

func (m *Item) MarshalBinary() ([]byte, error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method Item.MarshalBinary should have comment or be unexported

return swag.WriteJSON(m)
}

func (m *Error) UnmarshalBinary(b []byte) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method Error.UnmarshalBinary should have comment or be unexported

@@ -45,3 +46,19 @@ func (m *Error) validateMessage(formats strfmt.Registry) error {

return nil
}

func (m *Error) MarshalBinary() ([]byte, error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method Error.MarshalBinary should have comment or be unexported

return swag.WriteJSON(m)
}

func (m *Item) UnmarshalBinary(b []byte) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method Item.UnmarshalBinary should have comment or be unexported

@@ -45,3 +46,19 @@ func (m *Error) validateMessage(formats strfmt.Registry) error {

return nil
}

func (m *Error) MarshalBinary() ([]byte, error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method Error.MarshalBinary should have comment or be unexported

return swag.WriteJSON(m)
}

func (m *Item) UnmarshalBinary(b []byte) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method Item.UnmarshalBinary should have comment or be unexported

@@ -54,3 +55,19 @@ func (m *Item) validateDescription(formats strfmt.Registry) error {

return nil
}

func (m *Item) MarshalBinary() ([]byte, error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method Item.MarshalBinary should have comment or be unexported

return swag.WriteJSON(m)
}

func (m *Error) UnmarshalBinary(b []byte) error {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method Error.UnmarshalBinary should have comment or be unexported

@@ -45,3 +46,19 @@ func (m *Error) validateMessage(formats strfmt.Registry) error {

return nil
}

func (m *Error) MarshalBinary() ([]byte, error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported method Error.MarshalBinary should have comment or be unexported

@codecov
Copy link

codecov bot commented May 5, 2017

Codecov Report

Merging #1030 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1030      +/-   ##
==========================================
- Coverage    72.4%   72.38%   -0.02%     
==========================================
  Files          21       21              
  Lines        6073     6073              
==========================================
- Hits         4397     4396       -1     
- Misses       1207     1208       +1     
  Partials      469      469
Impacted Files Coverage Δ
generator/bindata.go 64.75% <100%> (ø) ⬆️
generator/structs.go 40% <0%> (-1.34%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98671ec...608f77b. Read the comment docs.

@casualjim casualjim merged commit 38c8c13 into master May 5, 2017
@casualjim casualjim deleted the more-marshalling-interfaces branch June 18, 2017 19:02
@jcoyne
Copy link

jcoyne commented Jan 31, 2018

I'm curious why you implemented this interface. Is it used somewhere?

@casualjim
Copy link
Member Author

yeah it's used when the handlers are returning errors and the content type is application/octet-stream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants