-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump schema number to 1.1 and use it in tests
Signed-off-by: Andrea Waltlova <[email protected]>
- Loading branch information
1 parent
6ba419b
commit 36dd9ea
Showing
3 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"title": "Convert2rhel pre-conversion script schema", | ||
"description": "Script is expected to set up Convert2rhel and run pre-conversion assessment. This schema defines the output format that is expected by Red Hat Insights Task UI.", | ||
"type": "object", | ||
"properties": { | ||
"status": { | ||
"$ref": "#/$defs/status_codes" | ||
}, | ||
"alert": { | ||
"type": "boolean" | ||
}, | ||
"report": { | ||
"type": "string" | ||
}, | ||
"message": { | ||
"type": "string" | ||
}, | ||
"report_json": { | ||
"oneOf": [ | ||
{ | ||
"type": "null" | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"entries": { | ||
"type": "object" | ||
}, | ||
"tasks_format_version": { | ||
"type": "string" | ||
}, | ||
"tasks_format_id": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"entries", | ||
"tasks_format_version", | ||
"tasks_format_id" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"status", | ||
"alert", | ||
"message", | ||
"report", | ||
"report_json" | ||
], | ||
"additionalProperties": false, | ||
"$defs": { | ||
"status_codes": { | ||
"description": "The severity of the results and messages", | ||
"type": "string", | ||
"enum": [ | ||
"SUCCESS", | ||
"INFO", | ||
"WARNING", | ||
"SKIP", | ||
"OVERRIDABLE", | ||
"ERROR" | ||
] | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters