{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/epa/refs/heads/main/json-schema/echo-all-echo08-schema.json",
  "title": "echo08",
  "description": "Results Object",
  "type": "object",
  "properties": {
    "BadSystemIDs": {
      "description": "Identifies which passed query system identifiers are invalid.",
      "type": "string",
      "example": "12345"
    },
    "CAARows": {
      "description": "The number of facilities or cases within the result set that have Clean Air Act (CAA) permits.",
      "example": "50",
      "title": "Clean Air Act Count",
      "type": "string"
    },
    "CVRows": {
      "description": "Summary count of the number of CWA facilities or SDWA public drinking water systems with current violations.",
      "example": "0",
      "type": "string"
    },
    "CWARows": {
      "description": "The number of facilities or cases within the results set that have Clean Water Act (CWA) permits.",
      "example": "50",
      "title": "Clean Water Act Count",
      "type": "string"
    },
    "ClusterOutput": {
      "$ref": "#/definitions/echo06"
    },
    "ClusterRecords": {
      "description": "Number of clusters returned.",
      "example": "199",
      "title": "Cluster Records",
      "type": "string"
    },
    "FEARows": {
      "description": "Summary count of the number of facilities with a formal enforcement action in the past five years",
      "example": "1",
      "type": "string"
    },
    "Facilities": {
      "description": "A complex array of facility information.",
      "items": {
        "$ref": "#/definitions/echo07"
      },
      "title": "Facilities",
      "type": "array",
      "xml": {
        "name": "Facilities",
        "wrapped": true
      },
      "example": [
        "string"
      ]
    },
    "INSPRows": {
      "description": "Number of facilities with insp_5yr_flag populated (CWP_DATE_LAST_INSPECTION)",
      "example": "1",
      "type": "string"
    },
    "IconBaseURL": {
      "description": "URL where all the icons are located",
      "example": "https://echo.epa.gov/app/map/icons/",
      "title": "Icon Base URL",
      "type": "string"
    },
    "IndianCountryRows": {
      "description": "Number of facilities with tribal_flag populated",
      "example": "0",
      "title": "Indian Country Row Count",
      "type": "string"
    },
    "InfFEARows": {
      "description": "Number of facilities with infea_5yr_flag populated (INFORMAL_ENF_ACT_COUNT > 0)",
      "example": "0",
      "type": "string"
    },
    "Message": {
      "description": "Field to record messages (typically performance-related) about packet processing",
      "example": "Success",
      "title": "Message",
      "type": "string"
    },
    "PopUpBaseURL": {
      "description": "Combine this URL with the PUC to get popup info",
      "example": "https://echodata.epa.gov/echo/cwa_rest_services.pop_up?p_id=",
      "title": "Popup Base URL",
      "type": "string"
    },
    "QueryID": {
      "description": "Sequential number assigned to entire search result",
      "example": "245",
      "title": "Query Identifier",
      "type": "string"
    },
    "QueryParameters": {
      "description": "A list of submitted query parameters and their values.",
      "items": {
        "$ref": "#/definitions/qp0"
      },
      "title": "Query Parameters",
      "type": "array",
      "xml": {
        "name": "QueryParameters",
        "wrapped": true
      },
      "example": [
        "string"
      ]
    },
    "QueryRows": {
      "description": "Number of query results returned",
      "example": "5",
      "title": "Query Row Count",
      "type": "string"
    },
    "RCRRows": {
      "description": "The number of facilities or cases within the results set that have Resource Conservation and Recovery Action (RCRA) permits.",
      "example": "50",
      "title": "Resource Recovery and Conservation Act Count",
      "type": "string"
    },
    "SVRows": {
      "description": "Number of facilities with curr_sv_flag populated (CWP_STATUS = \"Significant Violation\")",
      "example": "0",
      "title": "Significant Violation Result Count",
      "type": "string"
    },
    "ServiceBaseURL": {
      "description": "The base service URL.",
      "example": "https://echodata.epa.gov/echo/echo_rest_services.get_facility_info",
      "title": "Service Base URL",
      "type": "string"
    },
    "TRIRows": {
      "description": "The number of facilities within the results set that have Toxics Release Inventory (TRI) permits.",
      "example": "50",
      "title": "Toxics Release Inventory Row Count",
      "type": "string"
    },
    "TotalPenalties": {
      "description": "The total dollar amount of either assessed or final penalties within the five year time period",
      "example": "$963,531",
      "title": "Total Penalties",
      "type": "string"
    },
    "V3Rows": {
      "description": "Number of facilities having one or more quarters in non-compliance (QNC) in the last three years",
      "example": "2",
      "type": "string"
    }
  },
  "required": [
    "Message",
    "QueryID",
    "QueryRows",
    "IndianCountryRows",
    "SVRows",
    "CVRows",
    "V3Rows",
    "FEARows",
    "InfFEARows",
    "INSPRows",
    "TotalPenalties",
    "CAARows",
    "CWARows",
    "RCRRows",
    "TRIRows",
    "BadSystemIDs",
    "IconBaseURL",
    "PopUpBaseURL",
    "ServiceBaseURL",
    "QueryParameters"
  ]
}