| { |
| "title": "Body", |
| "body": { |
| "content": { |
| "application/json": { |
| "schema": { |
| "properties": { |
| "catalog": { |
| "description": "The database catalog", |
| "nullable": true, |
| "type": "string" |
| }, |
| "database_id": { |
| "description": "The database id", |
| "type": "integer" |
| }, |
| "schema": { |
| "description": "The database schema", |
| "nullable": true, |
| "type": "string" |
| }, |
| "sql": { |
| "description": "The SQL query to estimate", |
| "type": "string" |
| }, |
| "template_params": { |
| "description": "The SQL query template params", |
| "type": "object" |
| } |
| }, |
| "required": ["database_id", "sql"], |
| "type": "object", |
| "title": "EstimateQueryCostSchema" |
| }, |
| "example": { |
| "catalog": "string", |
| "database_id": 1, |
| "schema": "string", |
| "sql": "string", |
| "template_params": {} |
| } |
| } |
| }, |
| "description": "SQL query and params", |
| "required": true |
| } |
| } |