Skip to content

Commit

Permalink
Move and modify check schema
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhoyer committed Oct 16, 2024
1 parent 938e3fb commit af49b24
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
12 changes: 0 additions & 12 deletions tmt/schemas/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -493,15 +493,3 @@ definitions:
type: string
# yamllint disable-line rule:line-length
pattern: "^\\d{2,}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d+\\+\\d{2}:\\d{2}$"

check:
type: object
properties:
how:
type: string

enabled:
type: boolean

required:
- how
21 changes: 19 additions & 2 deletions tmt/schemas/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ properties:
check:
anyOf:
- type: string
- $ref: "/schemas/common#/definitions/check"
- $ref: "#/definitions/check"
- type: array
items:
anyOf:
- type: string
- $ref: "/schemas/common#/definitions/check"
- $ref: "#/definitions/check"

# https://tmt.readthedocs.io/en/stable/spec/core.html#id
id:
Expand Down Expand Up @@ -145,3 +145,20 @@ patternProperties:

required:
- test

definitions:
check:
type: object
properties:
how:
type: string
enabled:
type: boolean
result:
type: string
enum:
- respect
- xfail
- info
required:
- how

0 comments on commit af49b24

Please sign in to comment.