Skip to content

Correct behavior of PATCH /submodel/$value #160

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

Open
arnoweiss opened this issue Aug 23, 2023 · 0 comments
Open

Correct behavior of PATCH /submodel/$value #160

arnoweiss opened this issue Aug 23, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@arnoweiss
Copy link

  • Let's say there's a Submodel with a SubmodelElementList. This SMEL has 10 entries.
  • This submodel receives a PATCH /submodel/$value with a payload that has 15 entries of the same structure for the SMEL.

What's the intended behavior here?

  1. HTTP 204 --> all 15 SMEL-entries are deserialized into full AAS-objects and then replace the previous 10 entries.
  2. HTTP 400 --> The size of the SMELs does not match. The server has no full AAS-objects to deserialize the last 5 entries into.
@arnoweiss arnoweiss changed the title Correct behavior of PATCH/submodel/$value Correct behavior of PATCH /submodel/$value Aug 23, 2023
@sebbader-sap sebbader-sap self-assigned this Sep 5, 2023
@sebbader-sap sebbader-sap added this to the 3.1 milestone Sep 5, 2023
@sebbader-sap sebbader-sap added the documentation Improvements or additions to documentation label Sep 5, 2023
@sebbader-sap sebbader-sap modified the milestones: 3.1, 3.x Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants