POST machine (create) with empty name gives "Machine already exists" #470

Closed
opened 2023-11-05 11:33:26 +00:00 by hsjobeki · 1 comment
Owner
{
	"POST": {
		"scheme": "http",
		"host": "localhost:2979",
		"filename": "/api/example_clan/machines",
		"remote": {
			"Address": "127.0.0.1:2979"
		}
	}
}
{"name":""}

->

422 Unprocessable Entity

{"detail":[{"loc":[],"msg":"Machine '' already exists"}]}

Expected

Utilize Pydantic, for schema validation. Return details about failed field validation for field "name"

```json { "POST": { "scheme": "http", "host": "localhost:2979", "filename": "/api/example_clan/machines", "remote": { "Address": "127.0.0.1:2979" } } } {"name":""} ``` -> ``` 422 Unprocessable Entity {"detail":[{"loc":[],"msg":"Machine '' already exists"}]} ``` ## Expected Utilize Pydantic, for schema validation. Return details about failed field validation for field "name"
Qubasa was assigned by hsjobeki 2023-11-05 11:33:29 +00:00
Owner

fixed via #481

fixed via https://git.clan.lol/clan/clan-core/pulls/481
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: clan/clan-core#470
No description provided.