Skip to content

PathItem Fix#262

Merged
sebbader-sap merged 3 commits intoIDTA-01002-3-0_bugfix-2-preparationfrom
SeBa/258-bug-in-pathitem
Mar 19, 2024
Merged

PathItem Fix#262
sebbader-sap merged 3 commits intoIDTA-01002-3-0_bugfix-2-preparationfrom
SeBa/258-bug-in-pathitem

Conversation

@sebbader-sap
Copy link
Contributor

  1. add array where missing
  2. new pathitem regex to also allow SubmodelElementLists

Solves #258

@sebbader-sap sebbader-sap added this to the 3.0.2 milestone Mar 18, 2024
@sebbader-sap sebbader-sap requested a review from mjacoby March 18, 2024 17:40
@sebbader-sap
Copy link
Contributor Author

Additional reviews are welcome...

PathItem:
type: string
pattern: "^(([A-Za-z][A-Za-z0-9_]+)|(\\[[0-9]+\\]))((\\.[A-Za-z][A-Za-z0-9_]+)|(\\[[0-9]+\\])){0,}$"
pattern: "^([A-Za-z][A-Za-z0-9_]+)((\\.[A-Za-z][A-Za-z0-9_]+)|(\\[[0-9]+\\])){0,}$"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems quite solid to me. Only small issue I see is that it allows for leading zeros in array indicies, e.g. foo[0000] or foo[00000000000000000000000001] are considered valid. Not sure if this is intentional but I would suggest to not allow this as it can easily be fixed by using ^([A-Za-z][A-Za-z0-9_]+)((\\.[A-Za-z][A-Za-z0-9_]+)|(\\[(0|[1-9][0-9]*)\\])){0,}$ instead

@sebbader-sap sebbader-sap requested a review from mjacoby March 19, 2024 09:38
@sebbader-sap sebbader-sap merged commit a4c5f5b into IDTA-01002-3-0_bugfix-2-preparation Mar 19, 2024
@sebbader-sap sebbader-sap deleted the SeBa/258-bug-in-pathitem 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