teemtee / tmt

Test Management Tool
MIT License
79 stars 117 forks source link

Feature schema missing `name`, `order` #2984

Open martinhoyer opened 1 month ago

martinhoyer commented 1 month ago

tmt lint reporting false positives when order or name is added to feature prepare steps.

LecrisUT commented 1 month ago

Probably the schema files should be refactored a bit to use definitions and one_of. Maybe could try:

definitions:
  feature:
    properties:
      how:
        type: string
        enum:
          - feature
      epel:
        type: string
        enum:
          - enabled
          - disabled
one_of:
  - $ref: "/schemas/core#/definitions/core"
  - $ref: "#/definitions/feature"
required:
  - how

Dunno how well these mix though, particularly required over there. Having some reference would definitely be helpful for plugin development.