{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-src-app-endpoints-admin-submit-sql-query-request-schema.json",
  "title": "Request",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-admin-api-openapi.yml#/components/schemas/src__app__endpoints__admin__submit_sql_query__Request",
  "properties": {
    "sql_query": {
      "$ref": "#/$defs/amigo_lib__pydantic__base_model__StrippedNonemptyString__1",
      "description": "The SQL query to execute."
    },
    "async_query": {
      "type": "boolean",
      "const": false,
      "title": "Async Query",
      "description": "Whether the query is asynchronous. If true, a signed URL will be returned to download the results once the query is complete. If false, the results will be returned in the response, but at most\n1000 rows will be returned, and the query is subject to a 30 second execution timeout."
    }
  },
  "type": "object",
  "required": [
    "sql_query",
    "async_query"
  ],
  "$defs": {
    "amigo_lib__pydantic__base_model__StrippedNonemptyString__1": {
      "type": "string",
      "minLength": 1
    }
  }
}