Skip to content

YAML output (and export) field ordering is alphabetical, feels random #6428

@evankanderson

Description

@evankanderson

Inspired by https://github.com/mindersec/minder/pull/6420/changes#r3150107180

We have a standard field ordering in https://github.com/mindersec/minder-rules-and-profiles for Profiles, RuleTypes, and DataSources. It's generally:

  • version
  • type
  • name
  • context (if needed/present)
  • (other fields, generally descriptive / metadata before deep structure)

It would be great if places where we print YAML could order the fields -- it's not clear how hard this is, but it might be a good first issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Nice to fix: non-critical items that should be evaluated and planned during issue triagegood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions