Error in openapi spec for login

Discussions

Ask a Question
Back to All

Error in openapi spec for login

Hi,

I noticed an error in your openapi generated file for path /login
email and password is specified as query parameter instead of multipart properties.
Here the correct format

Authentication

"/login":
post:
tags: [Authentication]
summary: Login
description: "User login by email and password. Used only on Sinao API. CloudAccounting API needs a different API key"
operationId: auth.login
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
email:
type: string
format: email
required: true
description: "Email for login"
password:
type: string
required: true
description: "Password for login in clear text"
responses:
"200":
description: Successful Operation
"401":
description: Invalid password
"404":
description: Email address not found
"422":
description: No password defined

ï»ż