-
Notifications
You must be signed in to change notification settings - Fork 7
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 Cardinality for Response Payloads of PUTs and PATCH #263
base: IDTA-01002-3-1_preparation
Are you sure you want to change the base?
Fix Cardinality for Response Payloads of PUTs and PATCH #263
Conversation
…REST-API.adoc Co-authored-by: Birgit Boss <[email protected]>
…REST-API.adoc Co-authored-by: Michael Jacoby <[email protected]>
…min-shell-io/aas-specs-api into SeBa/bugfix-changes-for-3.1.0
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.2#/components/schemas/PathItem' | ||
type: array | ||
items: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.2#/components/schemas/PathItem' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
V3.1
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.2#/components/schemas/PathItem' | ||
type: array | ||
items: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.2#/components/schemas/PathItem' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
V3.1
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.2#/components/schemas/PathItem' | ||
type: array | ||
items: | ||
$ref: 'https://api.swaggerhub.com/domains/Plattform_i40/Part2-API-Schemas/V3.0.2#/components/schemas/PathItem' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
V3.1
@@ -52,7 +52,7 @@ components: | |||
type: string | |||
minLength: 1 | |||
maxLength: 2000 | |||
pattern: "^[\\x09\\x0A\\x0D\\x20-\\uD7FF\\uE000-\\uFFFD\\U00010000-\\U0010FFFF]*$" | |||
pattern: ^([\\t\\n\\r -\ud7ff\ue000-\ufffd]|\\ud800[\\udc00-\\udfff]|[\\ud801-\\udbfe][\\udc00-\\udfff]|\\udbff[\\udc00-\\udfff])*$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should reflect Constraint AASd-130: an attribute with data type "string" shall consist of these characters only: ^[\x09\x0A\x0D\x20-\uD7FF\uE000-\uFFFD\u00010000-\u0010FFFF]*$. ? see also admin-shell-io/aas-specs#362
a) removed Category from example since deprecated b) change ConceptDescription to GlobalReference since only external references allowed for semanticId with V3.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check version in $ref, should be V3.1?
semanticId of SMT TechnicalData is no IRDI
see also #272 for further change requests
I was not able to review the RegEx
For ServiceDescription: We do not have an enumeration any longer, or an open enumeration. But for this we need an update of Annex Class Table Templates.
ServiceSpecificationProfileEnum: a little bit strange: either list all /3/0 and then /3/1 or always as pairs with the different versions. But I feel some are missing. Or is it because they did not change in V3.1?
@@ -164,7 +164,7 @@ components: | |||
type: string | |||
minLength: 1 | |||
maxLength: 2000 | |||
pattern: "^[\\x09\\x0A\\x0D\\x20-\\uD7FF\\uE000-\\uFFFD\\U00010000-\\U0010FFFF]*$" | |||
pattern: ^([\\t\\n\\r -\ud7ff\ue000-\ufffd]|\\ud800[\\udc00-\\udfff]|[\\ud801-\\udbfe][\\udc00-\\udfff]|\\udbff[\\udc00-\\udfff])*$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see line 55
@@ -174,15 +174,15 @@ components: | |||
type: string | |||
minLength: 1 | |||
maxLength: 2000 | |||
pattern: "^[\\x09\\x0A\\x0D\\x20-\\uD7FF\\uE000-\\uFFFD\\U00010000-\\U0010FFFF]*$" | |||
pattern: ^([\\t\\n\\r -\ud7ff\ue000-\ufffd]|\\ud800[\\udc00-\\udfff]|[\\ud801-\\udbfe][\\udc00-\\udfff]|\\udbff[\\udc00-\\udfff])*$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see line 55
idShort: | ||
type: string | ||
maxLength: 128 | ||
id: | ||
type: string | ||
maxLength: 2000 | ||
minLength: 1 | ||
pattern: "^[\\x09\\x0A\\x0D\\x20-\\uD7FF\\uE000-\\uFFFD\\U00010000-\\U0010FFFF]*$" | ||
pattern: ^([\\t\\n\\r -\ud7ff\ue000-\ufffd]|\\ud800[\\udc00-\\udfff]|[\\ud801-\\udbfe][\\udc00-\\udfff]|\\udbff[\\udc00-\\udfff])*$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see line 55
@@ -306,7 +306,7 @@ components: | |||
type: string | |||
minLength: 1 | |||
maxLength: 2000 | |||
pattern: "^[\\x09\\x0A\\x0D\\x20-\\uD7FF\\uE000-\\uFFFD\\U00010000-\\U0010FFFF]*$" | |||
pattern: ^([\\t\\n\\r -\ud7ff\ue000-\ufffd]|\\ud800[\\udc00-\\udfff]|[\\ud801-\\udbfe][\\udc00-\\udfff]|\\udbff[\\udc00-\\udfff])*$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see line 55
@@ -565,7 +565,7 @@ components: | |||
aasIds: | |||
items: | |||
type: string | |||
pattern: "^[\\x09\\x0A\\x0D\\x20-\\uD7FF\\uE000-\\uFFFD\\U00010000-\\U0010FFFF]*$" | |||
pattern: ^([\\t\\n\\r -\ud7ff\ue000-\ufffd]|\\ud800[\\udc00-\\udfff]|[\\ud801-\\udbfe][\\udc00-\\udfff]|\\udbff[\\udc00-\\udfff])*$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see line 55
@@ -740,7 +740,7 @@ components: | |||
type: string | |||
minLength: 1 | |||
maxLength: 2000 | |||
pattern: "^[\\x09\\x0A\\x0D\\x20-\\uD7FF\\uE000-\\uFFFD\\U00010000-\\U0010FFFF]*$" | |||
pattern: ^([\\t\\n\\r -\ud7ff\ue000-\ufffd]|\\ud800[\\udc00-\\udfff]|[\\ud801-\\udbfe][\\udc00-\\udfff]|\\udbff[\\udc00-\\udfff])*$ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see line 55
ValueOnly: | ||
description: "The ValueOnly serialization of submodel elements (patternProperties and propertyNames will be supported propably with OpenApi 3.1). The full description of the generic JSON validation schema for the ValueOnly-serialization can be found in chapter 11.4.3 in Details of the Asset Administration Shell Part 2.\n" | ||
description: "The ValueOnly serialization (patternProperties and propertyNames will be supported probably with OpenApi 3.1). For the full description of the generic JSON validation schema see the ValueOnly-Serialization as defined in the 'Specification of the Asset Administration Shell - Part 2'." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: "The ValueOnly serialization (patternProperties and propertyNames will be supported probably with OpenApi 3.1). For the full description of the generic JSON validation schema see the ValueOnly-Serialization as defined in the 'Specification of the Asset Administration Shell - Part 2'." | |
description: "The ValueOnly serialization (patternProperties and propertyNames will be supported probably with OpenApi 3.1). For the full description of the generic JSON validation schema see the ValueOnly-Serialization as defined in the 'Specification of the Asset Administration Shell - Part 1' (IDTA-01001)." |
@@ -118,52 +119,15 @@ If applied to the Submodel: | |||
"value": "0173-1#01-AFZ615#016" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"value": "0173-1#01-AFZ615#016" | |
"value": "0173-1#01-AHF578#001" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not check the older IRDI, but this one is for HandoverDocumentation, see https://github.com/admin-shell-io/submodel-templates/blob/main/published/Handover%20Documentation/1/2/IDTA%2002004-1-2_Submodel_Handover%20Documentation.pdf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idShort should be changed to "HandoverDocumentation"
"semanticId": { | ||
"keys": [ { | ||
"type": "GlobalReference", | ||
"value": "0173-1#01-AFZ615#016" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For Technical Data it would be https://admin-shell.io/ZVEI/TechnicalData/Submodel/1/2
or change to Handover Docmentation, there it is an IRDI, see line 119
@@ -279,7 +281,12 @@ h|Operation Name h|HTTP Verb h|REST-Path h|Comment (e.g. optional query paramete | |||
|GetAssetAdministrationShell |GET |/aas |content-suffix: $reference | |||
|PutAssetAdministrationShell |PUT | | | |||
|GetAllSubmodelReferences |GET |/aas/submodel-refs |Pagination | |||
|PostSubmodelReference |POST |/aas/submodel-refs | | |||
|PostSubmodelReference |POST |/aas/submodel-refs a| Location header of the response contains the value ‘<baseUrl>/aas/submodel-ref/{submodelIdentifier}’ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
‘/aas/submodel-refs/{submodelIdentifier}’ Plural
Remove Category, semanticId only ExternalReference
No description provided.