openapi: 3.0.3
info:
  title: reporting-crds
  version: 0.0.1
  description: CustomResourceDefinition used by the reporting service.
components:
  schemas:
    DeNccloudReportingApiV0ModelsField:
      description: Single field of a topic schema. A field can be used for projecting,
        filtering and sorting in reports.
      type: object
      required:
      - type
      - is_array
      properties:
        type:
          $ref: '#/components/schemas/DeNccloudReportingApiV0EnumsScalarType'
          description: The (scalar) type of the field. Fields can only be primitive
            types.
        is_array:
          description: Setting this to `true` means the field is an array of given
            type.
          type: boolean
        fields:
          description: Nested fields for type `object`. When defining fields but not
            having set the type to `object`, the fields will be ignored. When setting
            the type to `object`, the fields need to be defined.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/DeNccloudReportingApiV0ModelsField'
        label:
          description: A human-readable label for the field.
          type: string
        description:
          description: A human-readable description of the field.
          type: string
    DeNccloudReportingCrdsV0ModelsReportStream:
      type: object
      required:
      - topic
      - description
      - service
      - schema
      properties:
        topic:
          description: Name of the topic, the report events will be published to.
          type: string
        description:
          description: A human-readable description of what this reporting stream
            supplies.
          type: string
        service:
          description: URI under which the service is reachable. This should be the
            root URI, so that appending `/_internal_/service` returns the service
            information.
          type: string
        schema:
          description: The schema of the data this reporting stream supplies.
          type: object
          additionalProperties:
            $ref: '#/components/schemas/DeNccloudReportingApiV0ModelsField'
    DeNccloudReportingApiV0EnumsScalarType:
      description: A type for a topic's schema field.
      type: string
      enum:
      - boolean
      - date-iso8601
      - date-time-iso8601
      - decimal
      - double
      - integer
      - long
      - string
      - uuid
      - object
