Skip to content

Validate for AASd-117 and AASd-120 #112

@sebbader-sap

Description

@sebbader-sap

What?

The named constraints do not appear in the JSON Schema or Part 1 OpenAPI file:

Constraint AASd-117: idShort of non-identifiable Referables not being a direct child of a SubmodelElementList shall be specified.
Constraint AASd-120: idShort of submodel elements being a direct child of a SubmodelElementList shall not be specified.

How?

For instance by changing the OpenAPI declaration to:

SubmodelElementCollection: 
  allOf: 
  - $ref: '#/components/schemas/AbstractSubmodelElement'
  - properties: 
       modelType: 
           type: string 
           pattern: ^SubmodelElementCollection$ 
      value: 
         type: array 
         items: 
             allOf: 
             - $ref: '#/components/schemas/SubmodelElement' 
             - required: 
                  - idShort
          minItems: 1 
SubmodelElementList: 
    allOf: 
    - $ref: '#/components/schemas/AbstractSubmodelElement' 
    - properties: 
          modelType: 
              type: string 
              pattern: ^SubmodelElementList$ 
          orderRelevant: 
               type: boolean 
         value: 
               type: array 
               items: 
                  allOf: 
                   - $ref: '#/components/schemas/SubmodelElement' 
                   - not: 
                        required: 
                        - idShort 
               minItems: 1 
         semanticIdListElement: 
             $ref: '#/components/schemas/Reference' 
         typeValueListElement: 
             $ref: '#/components/schemas/AasSubmodelElements' 
         valueTypeListElement: 
              $ref: '#/components/schemas/DataTypeDefXsd' 
         required: - typeValueListElement

Metadata

Metadata

Assignees

Labels

Part1Needs to be discussed in Part1aas-coreneeds to be discussed with aas-coreenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions