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

[WIP] 476 lift pointers #557

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

[WIP] 476 lift pointers #557

wants to merge 4 commits into from

Conversation

casualjim
Copy link
Member

@casualjim casualjim commented Jun 6, 2016

Starts implementing the items discussed in #476

For this to work we need a custom serializer for all types, not just the "special" ones. So most of the work is around generating a serializer, to a lesser extent it is about pointer/no pointer decisions at render time.

return nil
}

func (m *Item) Clone() *Item {

Choose a reason for hiding this comment

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

exported method Item.Clone should have comment or be unexported

Choose a reason for hiding this comment

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

exported method Item.Clone should have comment or be unexported

/*Item item

swagger:model item
*/
type Item struct {
__setValues bitset.BitSet
__nulls bitset.BitSet

Choose a reason for hiding this comment

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

don't use underscores in Go names; struct field __nulls should be _Nulls

@casualjim casualjim force-pushed the 476-lift-pointers branch 2 times, most recently from 09a37dd to 29eebe4 Compare July 4, 2016 18:12
@casualjim casualjim force-pushed the 476-lift-pointers branch 2 times, most recently from 4046616 to 9c57f4c Compare August 13, 2016 22:06
@Yarstions32
Copy link

Any updates?

@fredbi fredbi added model Related to swagger generate model command nullable labels Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
model Related to swagger generate model command nullable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants