Skip to content

Support both candidate info YAML formats #145

Description

@npolshakova

Problem

Candidate info metadata can be written as either a YAML mapping:

info:
  employer: Example
  slack: example

or a sequence of one-key mappings:

info:
  - employer: Example
  - slack: example

The low-level parser has tests for both forms from #114, but support is not end-to-end:

Desired behavior

  • Normalize mapping and sequence forms before candidate fields are rendered.
  • Update the candidate bio validator to accept both forms.
  • Validate fields generically against show_candidate_fields.
  • Add model/controller regression tests that render candidate profiles using both forms.
  • Keep the documented/template format consistent with the chosen canonical representation.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions