Commit 884177fc authored by bradburyr's avatar bradburyr
Browse files

Made CachingConfiguration a shared data type.

parent 69fe1079
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -269,6 +269,31 @@ components:
            $ref: 'TS29571_CommonData.yaml#/components/schemas/Uri'
          minItems: 1

    CachingConfiguration:
      type: object
      description: 'A configuration that affects the caching of media resources in the Media AS and the signalling of cache control metadata in HTTP responses generated by the Media AS.'
      required:
        - urlPatternFilter
        - cachingDirectives
      properties:
        urlPatternFilter:
          type: string
        cachingDirectives:
          type: object
          properties:
            statusCodeFilters:
              type: array
              items:
                type: integer
                minimum: 100
                maximum: 599
              minItems: 1
            noCache:
              type: boolean
              default: false
            maxAge:
              $ref: 'TS29571_CommonData.yaml#/components/schemas/Uint32'

    #####################################
    # Clause 6.4.4: Enumerated data types
    #####################################
+1 −27
Original line number Diff line number Diff line
@@ -306,32 +306,6 @@ components:
        mappedPath:
          type: string

    DistributionCachingConfiguration:
      type: object
      description: 'A caching configuration for content distribution at reference point M4d.'
      required:
        - urlPatternFilter
        - cachingDirectives
      properties:
        urlPatternFilter:
          type: string
        cachingDirectives:
          type: object
          required:
            - noCache
          properties:
            statusCodeFilters:
              type: array
              items:
                type: integer
                minimum: 100
                maximum: 599
              minItems: 1
            noCache:
              type: boolean
            maxAge:
              $ref: 'TS29571_CommonData.yaml#/components/schemas/Uint32'

    DistributionConfiguration:
      type: object
      required:
@@ -376,7 +350,7 @@ components:
        cachingConfigurations:
          type: array
          items:
            $ref: '#/components/schemas/DistributionCachingConfiguration'
            $ref: 'TS26510_CommonData.yaml#/components/schemas/CachingConfiguration'
          minItems: 1
        geoFencing:
          type: object
+1 −20
Original line number Diff line number Diff line
@@ -301,28 +301,9 @@ components:
        cachingConfigurations:
          type: array
          items:
            $ref: '#/components/schemas/EgestCachingConfiguration'
            $ref: 'TS26510_CommonData.yaml#/components/schemas/CachingConfiguration'
          minItems: 1
 
    EgestCachingConfiguration:
      type: object
      description: 'A caching configuration for content egest at reference point M2.'
      required:
        - urlPatternFilter
        - cachingDirectives
      properties:
        urlPatternFilter:
          type: string
        cachingDirectives:
          type: object
          required:
            - noCache
          properties:
            noCache:
              type: boolean
            maxAge:
              $ref: 'TS29571_CommonData.yaml#/components/schemas/Uint32'

    ContributionConfiguration:
      type: object
      description: 'A configuration for content contribution.'