Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix min and max length for iso3166_2_lvl4 attribute #180

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

italovalcy
Copy link
Contributor

Fix #165

Description of the change

According to the Topology data model spec, the iso3166_2_lvl4 should be composed by a 2 alphanumeric characters representing the country code + "-" + up to three alpha chars obtained from national sources and stems from coding systems already in use in the country concerned. The regex code for this attribute was correct, but the min and max length were not comply with the spec.

This PR fixes the min and max length for the iso3166_2_lvl4 attribute.

@italovalcy italovalcy self-assigned this Feb 14, 2025
@YufengXin
Copy link
Collaborator

Is this related to the new "community" attribute for the Port?

@coveralls
Copy link

Pull Request Test Coverage Report for Build 13331873826

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 80.978%

Totals Coverage Status
Change from base Build 12917532142: 0.0%
Covered Lines: 1209
Relevant Lines: 1493

💛 - Coveralls

@italovalcy
Copy link
Contributor Author

Is this related to the new "community" attribute for the Port?

Hi Yufeng. It is not. It is related to the Location.iso3166_2_lvl4

@YufengXin YufengXin merged commit 2cb9dfb into main Feb 19, 2025
11 checks passed
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.

Location Iso3166_2_lvl4 comply with topology data model spec 2.0.0
3 participants