Skip to content

Commit

Permalink
Fix the OpenAPI 2.0 spec for the /auth/login endpoint (fiatconnect#39)
Browse files Browse the repository at this point in the history
The schema is the "body" should be specified as a single parameter (not
multiple parameters):

  https://swagger.io/docs/specification/2-0/describing-request-body/
  • Loading branch information
silasbw authored May 10, 2022
1 parent 2e82965 commit 85580ab
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,20 @@ paths:
- "application/json"
parameters:
- in: "body"
name: "message"
description: "The plaintext SIWE message"
required: true
type: "string"
- in: "body"
name: "signature"
description: "An EIP-191 (for EOA) or EIP-1271 (for contract-owned accounts) signature for the SIWE message"
required: true
type: "string"
name: "siwe"
description: "SIWE object"
schema:
type: "object"
required:
- "message"
- "signature"
properties:
message:
type: "string"
description: "The plaintext SIWE message"
signature:
type: "string"
description: "An EIP-191 (for EOA) or EIP-1271 (for contract-owned accounts) signature for the SIWE message"
responses:
"200":
description: "successful operation"
Expand Down

0 comments on commit 85580ab

Please sign in to comment.