Skip to content

Discrepancy in OpenAPI specification for Errors on /api/user/change-password #40

Description

I am using 1.56 and when I do a change password (/api/user/change-password) with the wrong data i get some error json that matches up with API Errors

{
    "fieldErrors": {
        "currentPassword": [
            {
                "code": "[invalid]currentPassword",
                "message": "The [currentPassword] property is invalid. The value does not match the user's current password."
            }
        ]
    },
    "generalErrors": [
    ]
}

But this does not match up with the yaml in this area

        fieldErrors:
          type: array
          items:
            "$ref": "#/components/schemas/Error"

I believe the correct yaml for that area would be

        fieldErrors:
          type: object
          additionalProperties:
            type: array
            items:
              "$ref": "#/components/schemas/Error"

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions