Skip to content

Conversation

@Marcolr-dev
Copy link
Collaborator

…' for job identifiers in DTOs and controller logic
@ApiProperty({ format: "uuid", description: "UUID of the job", example: "uuid-1" })
uuid: string;
@ApiProperty({ format: "uuid", description: "UUID of the job", example: "550e8400-e29b-41d4-a716-446655440000" })
id: string;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does the data will be uuid or id ?
In the example it says that it will be uuid, then there is an inconsistency in the name as it is id.
I think the fix should be in other part in order to keep the correct matching between the data (uuid) and the naming of it.
I mean if UUID is the data, then the name should be UUID too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The use of id is correct according to the JSON API. The format: uuid indicates the value format, not the field name.
Other DTOs in the project already use id with UUID values.
SitePolygonUpdate (line 42)
The frontend already sends id in the payload`.
In any case, I can try using UUIDs, but I think that would be a more complex solution for formatting it.

Copy link
Collaborator

@egrojMonroy egrojMonroy Dec 30, 2025

Choose a reason for hiding this comment

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

but the Uuid name is from 12 months ago, that means that it was working good with uuid.
Maybe the error is in the frontend instead?
I think this error might have appeared since 445213a or this 66aacad but not sure

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