Write logic for createElection validation
This commit is contained in:
@ -34,8 +34,8 @@ paths:
|
||||
responses:
|
||||
201:
|
||||
description: Election created
|
||||
400:
|
||||
description: Bad request
|
||||
422:
|
||||
description: Unprocessable Content
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
@ -187,7 +187,7 @@ components:
|
||||
type: string
|
||||
description: Human-readable error message
|
||||
code:
|
||||
type: string
|
||||
type: integer
|
||||
description: Machine-readable error code
|
||||
details:
|
||||
type: object
|
||||
|
Reference in New Issue
Block a user