Skip to content

OpenAPI Swagger generation wrong error-parameters-item #37751

@wouter-toppy

Description

@wouter-toppy

Preconditions and environment

  • 2.3.x, 2.4.x

Steps to reproduce

  1. Go to your api docs url: /rest/all/schema/?services\=all
  2. You find an item named error-parameters-item with the property fieldValue
  3. According to framework/Exception/InputException.php the property is value not fieldValue

Expected result

Api generator should change the fieldValue property to value.

So a generated API with OpenAPI Generator can successfully serialize the API output

Actual result

The API docs said the property is fieldValue but the actual API response is value. So Generated API clients cannot Serialize the output

Additional information

image
image

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions