Skip to content

CoD effective date validation should return a list of errors #27608

Closed

Description

@AimeeGao

Description:
In the validate_effective_date function for CoD filings, some error messages are returned as a dict instead of a list. This causes those errors not to appear in the API response as expected.

Todos:

  • Update the function to return the list.
  • Add/Update tests.

Reference code:
https://github.com/bcgov/lear/blob/feature-sandbox/legal-api/src/legal_api/services/filings/validations/change_of_directors.py#L86C5-L95C74

Activity

  1. added
    Entities Team
    on May 6, 2025
  2. vikas-gov commented on Jan 15, 2026

    @vikas-gov
    Collaborator

    Review this ticket to confirm if this work has already been done in a different ticket.

  3. self-assigned this
    on Feb 9, 2026
  4. gunanagar commented on Feb 9, 2026

    @gunanagar
    Collaborator

    Tested all good. Covered also as pat of #27608

    Screenshot 2026-02-09 at 1.47.55 PM.png

    Screenshot 2026-02-09 at 1.45.58 PM.png

    Screenshot 2026-02-09 at 1.45.49 PM.png

    Screenshot 2026-02-09 at 1.42.27 PM.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions