Dragomir Ivanov

Results 74 comments of Dragomir Ivanov

Can you explain what use-case this might help? Mongo also has fixed "id" field name `_id`.

I am with @smyrman. Having `id` field as a standard is a good practice, and maybe `rest-layer` should keep that. DB Driver can be easily made to convert `id` to...

I gave example for cloning for GET in my comment above. Do you need PUT/POST as well?

Can you specify how you are initializing this `FieldCopy`? `id` field is needed by `rest-layer` so must be in the payload.

@apuigsech You are seeing this error, because `id` needs to be present in order for those `resource.Items` to be created in the first place. I guess apart from the @smyrman...

This should govern inclusion the `_etag` into `itemList` case as well.

I think that `Hidden` have to be hidden by default, but can be requested via `fields=` query parameter. This will be inconvenient because in order to get a hidden field,...

@smyrman I actually like the last idea about the `FieldMode`. Don't you like to make it just mask: ``` type FieldMode uint const ( ModeRead = iota ModeWrite ) ```...

@smyrman Yes, that makes sense. I was mistaken, this work will not depreciate `Hidden`.

@smyrman I think we need to consider also `Default` fields. What happens if you omit in regular PATCH a field with Default value. Does it stay the same, is it...