mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
docs: describe mutually exclusive create workspace template fields (#12834)
* docs: describe mutually exclusive create workspace template fields Ideally we could do this in the OpenAPI spec, but there is no first class "mutually exclusive" feature in OpenAPI. So in lieu of something more complex, or changing our struct/validation, a description comment should suffice. * chore: Add description to code sample as well
This commit is contained in:
2
coderd/apidoc/docs.go
generated
2
coderd/apidoc/docs.go
generated
@ -2211,6 +2211,7 @@ const docTemplate = `{
|
||||
"CoderSessionToken": []
|
||||
}
|
||||
],
|
||||
"description": "Create a new workspace using a template. The request must\nspecify either the Template ID or the Template Version ID,\nnot both. If the Template ID is specified, the active version\nof the template will be used.",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
@ -9045,6 +9046,7 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"codersdk.CreateWorkspaceRequest": {
|
||||
"description": "CreateWorkspaceRequest provides options for creating a new workspace. Only one of TemplateID or TemplateVersionID can be specified, not both. If TemplateID is specified, the active version of the template will be used.",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name"
|
||||
|
Reference in New Issue
Block a user