Skip to content

sdk: fix langtag constraints in LangStringSet#478

Open
hpoeche wants to merge 2 commits intoeclipse-basyx:developfrom
rwth-iat:fix/157
Open

sdk: fix langtag constraints in LangStringSet#478
hpoeche wants to merge 2 commits intoeclipse-basyx:developfrom
rwth-iat:fix/157

Conversation

@hpoeche
Copy link
Copy Markdown

@hpoeche hpoeche commented Apr 15, 2026

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 2 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.
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.

1 participant