Skip to content

Commit 0ca820b

Browse files
authored
Validate Render tags (#635)
* Validate Render tags Signed-off-by: Josh Sacks <josh.sacks@gmail.com> * fix type change Signed-off-by: Josh Sacks <josh.sacks@gmail.com> --------- Signed-off-by: Josh Sacks <josh.sacks@gmail.com>
1 parent af6aeb3 commit 0ca820b

File tree

6 files changed

+164
-84
lines changed

6 files changed

+164
-84
lines changed

api-doc.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,6 +2010,44 @@ components:
20102010
resource:
20112011
type: string
20122012
description: Resource path to the query result
2013+
renderLogs:
2014+
type: array
2015+
description: Render tag validation messages (errors, warnings) detected during query preparation
2016+
items:
2017+
$ref: "#/components/schemas/LogMessage"
2018+
2019+
LogMessage:
2020+
type: object
2021+
description: A log message from render tag validation
2022+
properties:
2023+
url:
2024+
type: string
2025+
description: URL of the source file related to this message
2026+
range:
2027+
type: object
2028+
description: Source location range for this message
2029+
properties:
2030+
start:
2031+
type: object
2032+
properties:
2033+
line:
2034+
type: integer
2035+
character:
2036+
type: integer
2037+
end:
2038+
type: object
2039+
properties:
2040+
line:
2041+
type: integer
2042+
character:
2043+
type: integer
2044+
severity:
2045+
type: string
2046+
description: Severity level of the log message
2047+
enum: ["debug", "info", "warn", "error"]
2048+
message:
2049+
type: string
2050+
description: Human-readable log message
20132051

20142052
Database:
20152053
type: object

0 commit comments

Comments
 (0)