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

[Model Issue]: ESSIncident v1.0.0 contains Regex patterns not properly matching provided example values #278

Closed
bs-jokri opened this issue Aug 9, 2023 · 1 comment

Comments

@bs-jokri
Copy link
Contributor

bs-jokri commented Aug 9, 2023

URL to Model with Issue

https://github.com/eclipse-tractusx/sldt-semantic-models/tree/main/io.catenax.essincident/1.0.0

Issue Description

The generated example payload from of the SAMM model ESSIncident contains example values, which do not comply with the provided regex rules.

image

Message:

String '[email protected]' does not match regex pattern '^[a-zA-Z0-9.!#$%&’*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*$'.

Schema path:

#/components/schemas/urn_samm_io.catenax.essincident_1.0.0_ContactMailTrait/pattern

Message:

String 'BPNL1234567890ZZ' does not match regex pattern '^(BPN)(L|S|A)(\\d{8})([a-zA-Z0-9]{4})$'.


Schema path:

#/components/schemas/urn_samm_io.catenax.essincident_1.0.0_BPN/pattern

Message:

String 'BPNL1234567890ZZ' does not match regex pattern '^(BPN)(L|S|A)(\\d{8})([a-zA-Z0-9]{4})$'.

Schema path:

#/components/schemas/urn_samm_io.catenax.essincident_1.0.0_BPN/pattern

Message:

String '-5.4220777' does not match regex pattern '^(+|-)?(?:90(?:(?:.0{1,6})?)|(?:[0-9]|[1-8][0-9])(?:(?:.[0-9]{1,6})?))$'.

Schema path:

#/components/schemas/urn_samm_io.catenax.essincident_1.0.0_LatitudeTrait/pattern

Message:

String 'BPNL1234567890ZZ' does not match regex pattern '^(BPN)(L|S|A)(\d{8})([a-zA-Z0-9]{4})$'.

Schema path:

#/components/schemas/urn_samm_io.catenax.essincident_1.0.0_BPN/pattern

@bs-jokri
Copy link
Contributor Author

will be resolved by PR #263

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

No branches or pull requests

1 participant