4 Comments
User's avatar
A220's avatar

The id in the device schema is required. But for my create route my client does not have this information (id is generated by server). Does this mean that I need to create a second schema like DeviceWithoutId for all my create routes?

Expand full comment
Alex Pliutau's avatar

Good point. I saw this issue as well. Sometimes a separate Payload type may be required, because the create operation requires only a subset of fields.

Expand full comment
Loknath Dhar's avatar

I really like the newsletters! Keep it up! ❤️

Expand full comment
Alex Pliutau's avatar

Thanks, will keep posting!

Expand full comment