Skip to content

Adjust Regex Changes also to the Part2 Classes#256

Merged
sebbader-sap merged 1 commit intoIDTA-01002-3-0_bugfix-2-preparationfrom
SeBa/regex-changes-part2-domain
Mar 19, 2024
Merged

Adjust Regex Changes also to the Part2 Classes#256
sebbader-sap merged 1 commit intoIDTA-01002-3-0_bugfix-2-preparationfrom
SeBa/regex-changes-part2-domain

Conversation

@sebbader-sap
Copy link
Contributor

As discussed in admin-shell-io/aas-specs-metamodel#362, the 'old' regex pattern ("^[\\x09\\x0A\\x0D\\x20-\\uD7FF\\uE000-\\uFFFD\\U00010000-\\U0010FFFF]*$") shall not be used in the schema files but replaced with one that is better suited to UTF-16-compliant validators (^([\\t\\n\\r -\ud7ff\ue000-\ufffd]|\\ud800[\\udc00-\\udfff]|[\\ud801-\\udbfe][\\udc00-\\udfff]|\\udbff[\\udc00-\\udfff])*$).

@sebbader-sap sebbader-sap added this to the 3.0.2 milestone Mar 12, 2024
@sebbader-sap sebbader-sap requested a review from g1zzm0 March 12, 2024 08:12
@sebbader-sap sebbader-sap changed the base branch from main to IDTA-01002-3-0_bugfix-2-preparation March 12, 2024 08:12
Copy link
Contributor

@g1zzm0 g1zzm0 left a comment

Choose a reason for hiding this comment

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

Once part 1 has also implemented the changes, these can also be adopted in part 2 in the same way

@sebbader-sap
Copy link
Contributor Author

@g1zzm0 I am not sure if I can follow you... The Part 1 Domain has this regex pattern already since quite some time, e.g.

- pattern: "^([\\t\\n\\r -\ud7ff\ue000-\ufffd]|\\ud800[\\udc00-\\udfff]|[\\ud801-\\udbfe][\\udc00-\\udfff]|\\udbff[\\udc00-\\udfff])*$"

Therefore, I don't think that Part 1 has to implement anything before...

@sebbader-sap sebbader-sap requested a review from g1zzm0 March 19, 2024 09:41
@sebbader-sap sebbader-sap merged commit d44d66b into IDTA-01002-3-0_bugfix-2-preparation Mar 19, 2024
@sebbader-sap sebbader-sap deleted the SeBa/regex-changes-part2-domain branch March 19, 2024 11:22
sebbader-sap added a commit that referenced this pull request Jul 3, 2024
* fix metadata and path endpoints

* increase the version to the v3.0.2 bugfix version

* remove bytes

* remove "submodelElements" from SubmodelValue

* Replace Service Description Profiles Enum with an open List (#230)

* change servicedescription/profiles enum to an open list, providing predefined values only as examples

* Remove Level from /$metadata (#250)

* remove the Level modifier from $metadata requests

* remove allOf SubmodelElementAttributes from SubmodelElementMetadata

* fix ValueOnly description

* PathItem Fix (#262)

add array<pathitem> where missing + new pathitem regex

* fix the regex pattern for part 2 classes according to the JSON schema regex (#256)

* fix bugs in the valueonly classes

* change annotations from array to value only

* replace regex patterns with latest json schema v3.0.1 content

* using the new string regex pattern also for part 2 classes

---------

Co-authored-by: Alexander Gordt <100141498+alexgordtop@users.noreply.github.com>
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