{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dregs-com/json-schema/dregs-com-v1-discovery-schema.json",
  "title": "V1Discovery",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dregs-com-mappings-api-openapi.yml#/components/schemas/V1Discovery",
  "type": "object",
  "properties": {
    "kinds": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/V1KindDiscovery"
      }
    }
  },
  "$defs": {
    "V1CanonicalDescriptor": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "V1KindDiscovery": {
      "type": "object",
      "properties": {
        "sources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/V1SourceRow"
          }
        },
        "canonicals": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/V1CanonicalDescriptor"
          }
        }
      }
    },
    "V1SourceRow": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string"
        },
        "seen": {
          "type": "boolean"
        },
        "seenCount": {
          "type": "integer",
          "format": "int64"
        },
        "mappingId": {
          "type": "integer",
          "format": "int64"
        },
        "canonical": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "recommendation": {
          "type": "string"
        }
      }
    }
  }
}