Skip to content

Business API: improve handling of some schema errors #32599

Open

Description

@severinbeauvais

In general, schema errors are handled by the API so that the response to the UI is meaningful (eg, contains a useful error message and error path). Eg,

image.png

However, some schema errors are improperly handled and do not provide the UI with the expected response. Eg,

image.png

(The above was simulated by filing an IA missing the contactPoint object.)

Here is the network response. The UI expects errors[0].error to be the message presently stored in errors[0].context[0].message. I also question why the context object is provided at all.

image.png

Vysakh looked at the code with me and is unsure why the response is as above -- it would take more digging and that's why I created this ticket.

The above scenario should never be seen by regular users as this would indicate a code error (vs a data error). However, API users might see the above.

Activity

  1. added
    Entities Team
    bug
    on Feb 24, 2026
  2. mstanton1 commented on May 19, 2026

    @mstanton1
    Collaborator

    Discussion during refinement:

    • information is helpful for the dev team if bugs arise
    • when bugs arise we have made a mistake in a release and need to fix that
    • this case was created through simulation
    • due to the likelihood of this occurring the intention is to handle in Nuxt
    • some options when this is picked up are to keep the data which could be shared in a support call but to keep it hidden. E.g. An unexpected error occurred with option to expand when on the call or emailing for support.
  3. mruff-aeq commented on Jun 2, 2026

    @mruff-aeq
    Collaborator

    i was wondering if we wanted to display the issue like this instead: @mstanton1 , in a dropdown menu like this is almost a zero code change

  4. mstanton1 commented on Jun 2, 2026

    @mstanton1
    Collaborator

    @mruff-aeq if this is an almost zero code change we could reconsider it within our MVP. I will move this ticket into the MVP epic.

  5. self-assigned this
    on Jun 2, 2026
  6. mruff-aeq commented on Jun 2, 2026

    @mruff-aeq
    Collaborator

    @mstanton1 , yes currently the error is being rendered as a list, and in a format like this

    <ul>
       <li>...</li>
    <ul>
    

    and to change it to a drop down will be a small change:

    <details>
      <summary>...</summary>
       ...
    </details>
    
  7. removed their assignment
    on Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities Teambug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions