Skip to content

docs: define "character" as a Unicode code point in Template Schemas - #188

Merged
mwiebe merged 1 commit into
OpenJobDescription:mainlinefrom
wyongzhi:define-character-code-point
Sep 14, 2026
Merged

mwiebe merged 1 commit into
OpenJobDescription:mainlinefrom
wyongzhi:define-character-code-point

Conversation

@wyongzhi

Copy link
Copy Markdown
Collaborator

Tracking Issue: #186

The 2023-09 Template Schemas document states every length limit in "characters" (e.g. JobName "Maximum length: 128 characters") without defining the term. "Character" can plausibly mean bytes, Unicode code points, or grapheme clusters, and implementations have diverged on it in practice: openjd-rs counted UTF-8 bytes under the current wording (fixed in OpenJobDescription/openjd-rs#383 by switching to .chars().count()), while openjd-model-for-python counts code points, so the same template with a non-ASCII name could be accepted by one implementation and rejected by the other.

This adds one sentence to the document preamble defining "character" as a Unicode code point, matching the Expression Language specification's definition of len() (number of Unicode code points).

No limit values change; this only pins down the unit they are measured in.

Closes #186


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The length limits in this document are stated in "characters" without
defining the term. "Character" can plausibly mean bytes, Unicode code
points, or grapheme clusters, and implementations have diverged on it in
practice. This defines it once, up front, as a Unicode code point,
matching the Expression Language specification's definition of len().

Closes OpenJobDescription#186

Signed-off-by: Yongzhi Wei <276409147+wyongzhi@users.noreply.github.com>
@wyongzhi
wyongzhi requested a review from a team as a code owner September 14, 2026 22:45
@mwiebe mwiebe changed the title docs: define "character" as a Unicode code point in Template Schemas docs: define "character" as a Unicode code point in Template Schemas Sep 14, 2026
@mwiebe
mwiebe merged commit 9827c10 into OpenJobDescription:mainline Sep 14, 2026
2 checks passed
@wyongzhi
wyongzhi deleted the define-character-code-point branch September 14, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Length limits say "characters" without defining it; Python and Rust count differently

2 participants