Commit c2b6a6ae authored by daniel-gonzalez-sanchez's avatar daniel-gonzalez-sanchez
Browse files

Uploading schemas for EntityMap and ContextSourceIdentity data types.

parent 2bcd3191
Loading
Loading
Loading
Loading
+93 −1
Original line number Diff line number Diff line
@@ -5853,6 +5853,98 @@ components:
          - type: array
            items:
              $ref: '#/components/schemas/ListRelationship'
    EntityMap:
      description: |
        5.2.39 EntityMap.
      type: object
      properties:
        type:
          description: |
            Node type.
          type: string
          enum:
            - EntityMap
          default: EntityMap
        expiresAt:
          description: |
            Expiration date for the EntityMap.
          type: string
          format: date-time
        entityMap:
          description: |
            System generated mapping of Entities to CSourceRegistrations.
            
            A set of key-value pairs whose keys shall be strings representing 
            Entity ids and whose values shall be an array holding every 
            CSourceRegistration id which is relevant to the ongoing Context 
            Information Consumption request (see clause 4.21). 
            
            The key "@none" shall be used to refer to an Entity that is held locally.
          type: object
          readOnly: true
        linkedMaps:
          description: |
            System generated mapping of Context CSourceRegistrations to a URI 
            indicating which EntityMaps was used by the Context Source.

            A set of key-value pairs whose keys shall be strings representing 
            CSourceRegistration ids which are relevant to the ongoing Context 
            Information request and whose values shall represent the associated 
            EntityMap id used by the ContextSource.
          type: object
          readOnly: true
      required:
        - type
        - expiresAt
    ContextSourceIdentity:
      description: |
        5.2.40 This type represents the data uniquely identifying a Context Source, 
        and if the Context Source supports multi-tenancy (see clause 4.14) uniquely 
        identifying a Tenant within that Context Source.
      type: object
      properties:
        id:
          description: |
            Context Source ID.
          type: string
          format: uri
        type:
          description: |
            Node type.
          type: string
          enum:
            - ContextSourceIdentity
          default: ContextSourceIdentity
        contextSourceExtras:
          description: |
            Instance specific information relevant to the configuration 
            of the Context Source itself in raw unexpandable JSON which 
            shall not be interpreted as JSON-LD using the supplied @context.
          type: object
        contextSourceUpTime:
          description: |
            Total Duration that the Context Source has been available.
          type: string
        contextSourceTimeAt:
          description: |
            Current time observed at the Context Source. Timestamp.
            See clause 4.8.
          type: string
          format: date-time
        contextSourceAlias:
          description: |
            A unique id for a Context Source which can be used to identify loops. 
            In the multi-tenancy use case (see clause 4.14), this id shall be 
            used to identify a specific Tenant within a registered Context Source.
          type: string
          minLength: 1
      required:
        - id
        - type
        - contextSourceUpTime
        - contextSourceTimeAt
        - contextSourceAlias
        
  responses:
    BadRequest:
      description: |