| { |
| "title": "Body", |
| "body": { |
| "content": { |
| "application/json": { |
| "schema": { |
| "properties": { |
| "clause": { |
| "description": "SQL clause type for filter expressions", |
| "enum": ["WHERE", "HAVING"], |
| "type": "string" |
| }, |
| "expression": { |
| "description": "The SQL expression to validate", |
| "type": "string" |
| }, |
| "expression_type": { |
| "default": "where", |
| "description": "The type of SQL expression", |
| "enum": ["column", "metric", "where", "having"], |
| "type": "string" |
| } |
| }, |
| "required": ["expression"], |
| "type": "object" |
| }, |
| "example": { |
| "clause": "WHERE", |
| "expression": "string", |
| "expression_type": "column" |
| } |
| } |
| }, |
| "required": true |
| } |
| } |