Skip to content

🐛 Bug: Swagger schema does not match api response #6477

@wo0lien

Description

@wo0lien

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

  1. Create two tables
  2. Add a many-to-many link between table 1 and 2 on table 1
  3. Go to swagger docs and try first request

Swagger schemas shows an object

"nc_curg___nc_m2m_w5i3lbdpwrs": {
        "table2_id": 0,
        "table1_id": 0
      },

api response returns a list of objects

"nc_curg___nc_m2m_w5i3lbdpwrs": [
        {
          "table2_id": 1,
          "table1_id": 2
        }
]

Same issue found that #5224, but looks like it has been closed on version 0.106.0

Desired Behavior

Swagger schemas should match api response structure.

Project Details

Node: v16.20.1
Arch: x64
Platform: linux
Docker: true
RootDB: sqlite3
PackageVersion: 0.111.4

Attachments

No response

Metadata

Metadata

Assignees

Labels

Status: ReproducibleAble to reproduce the issue based on the reporters' guideline.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions