You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description of the bug and steps to reproduce:
I want to create a client for Listmonk API (Swagger).
So I use the openapi-generator to create the client code in my programming language.
As part of code generation process this tool VALIDATES the API specification
There are errors during valudation process, see below.
This tool (openapi-generator) found 6 errors in the Listmonk API
I think, this should be fixed
Steps to reproduce:
Check your Java version (and install Java if necessary).
We need Java 1.8.X or more
$ java -jar openapi-generator-cli.jar validate -i https://listmonk.app/docs/swagger/collections.yaml
Validating spec (https://listmonk.app/docs/swagger/collections.yaml)
Errors:
- attribute
paths.'/subscribers/{id}/bounces'(get).responses.200.content.'application/json'.schema.items
is missing
- paths.'/campaigns/{campaign_id}/text'. Declared path parameter campaign_id needs to be
defined as a path parameter in path or operation level
- attribute paths.'/bounces'(get).responses.200.content.'application/json'.schema.items is
missing
- paths.'/lists/{list_id}'. Declared path parameter list_id needs to be defined as a path
parameter in path or operation level
- paths.'/media/{media_id}'. Declared path parameter media_id needs to be defined as a path
parameter in path or operation level
- paths.'/bounces/{id}'. Declared path parameter id needs to be defined as a path parameter
in path or operation level
[error] Spec has 6 errors.
The text was updated successfully, but these errors were encountered:
stargazer33
changed the title
Errors in Listmonk swagger API (see https://listmonk.app/docs/swagger/collections.yaml )
Errors in Listmonk swagger API spec. (see https://listmonk.app/docs/swagger/collections.yaml )
May 7, 2023
the /campaigns description in the *.yml file is also not correct, the query parameter is missing:
/campaigns:
get:
description: handles retrieval of campaigns
parameters:
- in: query
name: page
description: Page number for paginated results
schema:
type: integer
format: int32
- in: query
name: per_page
description: max number of records to return per page
schema:
type: integer
format: int32
Version:
latest, see https://listmonk.app/docs/swagger/collections.yaml
Description of the bug and steps to reproduce:
I want to create a client for Listmonk API (Swagger).
So I use the openapi-generator to create the client code in my programming language.
As part of code generation process this tool VALIDATES the API specification
There are errors during valudation process, see below.
This tool (openapi-generator) found 6 errors in the Listmonk API
I think, this should be fixed
Steps to reproduce:
We need Java 1.8.X or more
Screenshots:
The text was updated successfully, but these errors were encountered: