Skip to content

sdk: fix langtag constraints in LangStringSet#478

Merged
s-heppner merged 3 commits into
eclipse-basyx:developfrom
rwth-iat:fix/157
Apr 21, 2026
Merged

sdk: fix langtag constraints in LangStringSet#478
s-heppner merged 3 commits into
eclipse-basyx:developfrom
rwth-iat:fix/157

Conversation

@hpoeche

@hpoeche hpoeche commented Apr 15, 2026

Copy link
Copy Markdown

Previously the LangStringSet checked language tags that were added
to match the simple format of xx or xx-XX. This did not follow the
documented behavior, which requires all IETF BCP 47 conform
language tags to be accepted.

These changes replaced the previous constraint check, with a
check by regular expression following the pattern described in
RFC 5646.

Fixes #157

hpoeche added 3 commits April 15, 2026 16:49
Previously the LangStringSet checked language tags that were added
to match the format of xx or xx-XX. This did not follow the
documented behavior, which requires all IETF BCP 47 conform
language tags to be accepted.

These changes replaced the previous constraint check, with a
check by regular expression, following the IETF BCP 47 standard.

Fixes eclipse-basyx#157
The langtag check of ITEF BCP 47 format from the aas-core project
was not following the RFC 5646 precisely in two minor important
points.

These deviations are now corrected, so the check strictly follows
the syntax described in the standard.
Previous change ignored case-insensivity of the abnf grammer
of the BCP 47 standard.

This change aligns the regex check with the one generated
from https://github.com/aas-core-works/abnf-to-regexp/blob/main/test_data/nested-python/bcp47/grammar.abnf.

@s-heppner s-heppner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@s-heppner s-heppner merged commit ae41792 into eclipse-basyx:develop Apr 21, 2026
15 checks passed
@s-heppner s-heppner deleted the fix/157 branch April 21, 2026 13:05
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.

2 participants