Skip to content

Commit

Permalink
feat: add support for rest of the tmt context
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed Mar 22, 2024
1 parent 099c7e2 commit 8fb3f95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,16 @@ const environmentSchema = z.object({
.optional(),
tmt: z
.object({
// https://tmt.readthedocs.io/en/stable/spec/context.html#dimension
context: z
.object({
distro: z.string().min(1).optional(),
variant: z.string().min(1).optional(),
arch: z.string().min(1).optional(),
component: z.string().min(1).optional(),
collection: z.string().min(1).optional(),
module: z.string().min(1).optional(),
initiator: z.string().min(1).optional(),
trigger: z.string().min(1).optional(),
})
.optional()
Expand Down

0 comments on commit 8fb3f95

Please sign in to comment.