Skip to content

Update schedule registration API to return error codes for invalid requests#2278

Merged
cb-github-robot merged 1 commit intocloud-barista:mainfrom
leehyeoklee:improve-registration
Jan 20, 2026
Merged

Update schedule registration API to return error codes for invalid requests#2278
cb-github-robot merged 1 commit intocloud-barista:mainfrom
leehyeoklee:improve-registration

Conversation

@leehyeoklee
Copy link
Copy Markdown
Contributor

Description
This PR modifies the schedule job registration API to return an explicit error code (HTTP 422 Unprocessable Entity) instead of 200 OK when validation fails.

Why
Previously, the updated registration logic was applied only to the direct Registration API and was not reflected in the Job Scheduling flow.
Consequently, the scheduler returned 200 OK even when validation errors occurred, failing to signal the error to the client.

Impact
This change ensures that the client (Map UI) can instantly catch validation errors (e.g., invalid resource combinations) and display an error message to the user.

Updates to the Map UI to accommodate this change are planned to follow immediately.

@seokho-son
Copy link
Copy Markdown
Member

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Jan 20, 2026
@cb-github-robot cb-github-robot merged commit 638e0d3 into cloud-barista:main Jan 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants