It's a common misunderstanding when a user tries to e.g. create a machine for a license using the license's key instead of its UUID. To communicate better errors, and to try and improve the DX here, we should add a :uuid type to our typed_params initializer and update all relationship params to use :uuid:
param :relationships do
param :license do
param :data do
- param :id, type: :string
+ param :id, type: :uuid
param :type, type: :string
end
end
end
It's a common misunderstanding when a user tries to e.g. create a machine for a license using the license's key instead of its UUID. To communicate better errors, and to try and improve the DX here, we should add a
:uuid
type to ourtyped_params
initializer and update all relationship params to use:uuid
: