From 80677b9bd181ea7798ae9be7b8ba0b5bbf91f633 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridnev Date: Mon, 9 Feb 2026 18:21:12 +0300 Subject: [PATCH] fix: align report schema with Python implementation - root.yaml: add file name comment, replace 'broken' with 'blocked' and 'invalid' statuses, change host_data to object type - result.yaml: change fields and params to object type, remove testops_id (keep only testops_ids array) - attachment.yaml: remove size field --- report/schemas/models/attachment.yaml | 3 --- report/schemas/result.yaml | 29 ++++++++------------------- report/schemas/root.yaml | 25 +++++++++++------------ 3 files changed, 20 insertions(+), 37 deletions(-) diff --git a/report/schemas/models/attachment.yaml b/report/schemas/models/attachment.yaml index 980d30b..3b0e6d7 100644 --- a/report/schemas/models/attachment.yaml +++ b/report/schemas/models/attachment.yaml @@ -12,8 +12,5 @@ properties: mime_type: type: string nullable: true - size: - type: number - nullable: true id: type: string diff --git a/report/schemas/result.yaml b/report/schemas/result.yaml index c1fba84..b7b9f10 100644 --- a/report/schemas/result.yaml +++ b/report/schemas/result.yaml @@ -25,16 +25,11 @@ properties: type: string nullable: true fields: - type: array + type: object nullable: true - items: - type: object - properties: - name: - type: string - value: - type: string - nullable: true + description: custom fields as key-value pairs + additionalProperties: + type: string id: type: string message: @@ -43,16 +38,11 @@ properties: muted: type: boolean params: - type: array + type: object nullable: true - items: - type: object - properties: - name: - type: string - value: - type: string - nullable: true + description: test parameters as key-value pairs + additionalProperties: + type: string param_groups: type: array nullable: true @@ -84,9 +74,6 @@ properties: type: array items: $ref: "./models/step.yaml" - testops_id: - type: number - nullable: true testops_ids: type: array nullable: true diff --git a/report/schemas/root.yaml b/report/schemas/root.yaml index f577813..eac7bea 100644 --- a/report/schemas/root.yaml +++ b/report/schemas/root.yaml @@ -1,3 +1,6 @@ +# File: run.json +# Main report file containing aggregated test run data + type: object properties: title: @@ -33,9 +36,12 @@ properties: skipped: type: number description: number of skipped tests in the report - broken: + blocked: type: number - description: number of broken tests in the report + description: number of blocked tests in the report + invalid: + type: number + description: number of invalid tests in the report muted: type: number description: number of muted tests in the report @@ -78,14 +84,7 @@ properties: description: environment of the report nullable: true host_data: - type: array - description: list of host data in the report. Like hostname, os, version etc. - items: - type: object - properties: - name: - type: string - description: name of the host data - value: - type: string - description: value of the host data + type: object + description: host data in the report. Like hostname, os, version etc. + additionalProperties: + type: string