Skip to content

Commit

Permalink
Mention allowed characters in template ids in the reference page (inf…
Browse files Browse the repository at this point in the history
…ra) (canonical#1187)

Mention allowed characters in template ids in the reference page

Template ids, like job ids, should only include characters in
[a-z0-9/-].
  • Loading branch information
pieqq authored and LiaoU3 committed Apr 17, 2024
1 parent 64d9493 commit d2c241a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference/units/job.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Following fields may be used by the job unit:
``id``:
(mandatory) - A name for the job. Should be unique, an error will
be generated if there are duplicates. Should contain characters in
[a-z0-9/-].
``[a-z0-9/-]``.
This field used to be called ``name``. That name is now deprecated. For
backwards compatibility it is still recognized and used if ``id`` is
missing.
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/units/template.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ Template-Specific Fields
.. _Template template-id field:

``template-id``
Unique identifier for this template.
Unique identifier for this template. Should contain characters in
``[a-z0-9/-]``.

This field is optional. If absent, a ``template-id`` value will be computed
from the ``id`` field. For instance, if the ``id`` field is
Expand Down

0 comments on commit d2c241a

Please sign in to comment.