{
  "openapi": "3.0.1",
  "info": {
    "title": "JSONL Lint and Repair",
    "description": "Lint JSONL files line by line, detect malformed records and schema issues, optionally repair safe common problems, and output cleaned JSONL plus detailed line-level diagnostics.",
    "version": "1.0",
    "x-build-id": "sAj53snOSfBliAcRo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/junipr~jsonl-lint-and-repair/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-junipr-jsonl-lint-and-repair",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/junipr~jsonl-lint-and-repair/runs": {
      "post": {
        "operationId": "runs-sync-junipr-jsonl-lint-and-repair",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/junipr~jsonl-lint-and-repair/run-sync": {
      "post": {
        "operationId": "run-sync-junipr-jsonl-lint-and-repair",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "jsonlTextInputs": {
            "title": "JSONL Text Inputs",
            "type": "array",
            "description": "Supplied input records for JSONL Lint and Repair to process without additional discovery.",
            "items": {
              "type": "string"
            },
            "default": [
              "{\"id\":583231,\"login\":\"octocat\",\"type\":\"User\"}\n{\"id\":2,\"login\":\"defunkt\",\"type\":\"User\"}\n{\"id\":1,\"login\":\"mojombo\",\"type\":\"User\"}"
            ]
          },
          "jsonlUrls": {
            "title": "JSONL URLs",
            "type": "array",
            "description": "Public JSONL URLs to fetch or inspect for JSONL Lint and Repair.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "expectedSchema": {
            "title": "Expected Schema",
            "type": "object",
            "description": "Expected schema used for comparison and validation.",
            "default": {
              "type": "object",
              "required": [
                "id",
                "login",
                "type"
              ],
              "properties": {
                "id": {
                  "type": "number",
                  "title": "Id",
                  "description": "Id input value."
                },
                "login": {
                  "type": "string",
                  "title": "Login",
                  "description": "Login input value."
                },
                "type": {
                  "type": "string",
                  "title": "Type",
                  "description": "Type input value."
                }
              }
            },
            "additionalProperties": true
          },
          "requiredFields": {
            "title": "Required Fields",
            "type": "array",
            "description": "Require required fields during validation and flag rows that do not meet the rule.",
            "items": {
              "type": "string"
            },
            "default": [
              "id",
              "login",
              "type"
            ]
          },
          "idField": {
            "title": "ID Field",
            "type": "string",
            "description": "ID Field controls JSONL Lint and Repair processing for the supplied inputs; keep values conservative for first runs.",
            "default": "id"
          },
          "repairMode": {
            "title": "Repair Mode",
            "type": "string",
            "description": "Repair Mode controlling how JSONL Lint and Repair processes the supplied inputs.",
            "default": "safe"
          },
          "allowedRepairs": {
            "title": "Allowed Repairs",
            "type": "array",
            "description": "Allowed repairs for this run. Values outside this list are skipped or flagged.",
            "items": {
              "type": "string"
            },
            "default": [
              "trailingComma",
              "arrayWrapped",
              "bom"
            ]
          },
          "strictMode": {
            "title": "Strict Mode",
            "type": "boolean",
            "description": "Strict Mode controlling how JSONL Lint and Repair processes the supplied inputs.",
            "default": true
          },
          "maxLines": {
            "title": "Max Lines",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Maximum lines to process in one run; keep defaults low for safe first runs.",
            "default": 10
          },
          "maxLineBytes": {
            "title": "Max Line Bytes",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Maximum line bytes to process in one run; keep defaults low for safe first runs.",
            "default": 1000
          },
          "includeRepairedOutput": {
            "title": "Include Repaired Output",
            "type": "boolean",
            "description": "Include repaired output in output rows or reports when available.",
            "default": true
          },
          "timeoutMs": {
            "title": "Timeout ms",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Maximum time in milliseconds allowed for the JSONL Lint and Repair operation before it is treated as timed out.",
            "default": 5000
          },
          "maxChargeUsd": {
            "title": "Max Charge USD",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Maximum estimated PPE charge allowed for the run before the actor stops gracefully.",
            "default": 1
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}