Commit 8ea6d0ae authored by Ignacio Dominguez Martinez-Casanueva's avatar Ignacio Dominguez Martinez-Casanueva
Browse files

Define DateTimeValue as schema for Property value and previousValue

parent 14628f8b
Loading
Loading
Loading
Loading
+22 −2
Original line number Diff line number Diff line
@@ -3365,7 +3365,9 @@ components:
        value:
          description: |
            Property value.
          $ref: '#/components/schemas/AnyValue'
          oneOf:
            - $ref: '#/components/schemas/DateTimeValue'
            - $ref: '#/components/schemas/AnyValue'
        observedAt:
          $ref: '#/components/schemas/ObservedAt'
          description: |
@@ -3405,6 +3407,8 @@ components:
          description: |
            Previous Property value. Only used in notifications.
          allOf:
            - oneOf:
              - $ref: '#/components/schemas/DateTimeValue'
              - $ref: '#/components/schemas/AnyValue'
          readOnly: true
      additionalProperties:
@@ -4930,6 +4934,22 @@ components:
        - $ref: '#/components/schemas/Geometry.LineString'
        - $ref: '#/components/schemas/Geometry.MultiLineString'
        - $ref: '#/components/schemas/Geometry.MultiPolygon'
    DateTimeValue:
      description: |
        Date representation as mandated by C.6 "Date Representation"
      type: object
      properties:
        '@type':
          type: string
          enum:
            - DateTime
          default: DateTime
        '@value':
          type: string
          format: date-time
      required:
        - '@type'
        - '@value'
    #
    ######
    # Took "ProblemDetails" schema from ETSI NFV OAS