fix(api): check serve and service dl defaults at job admission

This commit is contained in:
imSp4rky
2026-11-28 14:32:31 -07:00
parent 5f675bd5ff
commit daa9caa02b
5 changed files with 81 additions and 10 deletions
+2
View File
@@ -538,6 +538,8 @@ profile, never a service's own `--profile` option.
On the server, unshackle merges the effective parameters in this order: defaults → `serve:` config overrides → service-specific defaults → your request body.
The server checks each `serve:` and `services.<TAG>.dl` value that a job uses with the rules of a request body. A bad value refuses the job with `400 INVALID_PARAMETERS`, and the message starts with the config block, for example `serve: workers must be a positive integer`. A value that your request body replaces is not checked.
| Status | Error code | Meaning |
| --- | --- | --- |
| `202` | - | Job queued. |