Skip to content

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

Open
@brian-knoll-micronetonline

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"

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