Swagger errors [Mar 29]

:raising_hand_man: dpg asked

We’re trying to use the generated swagger API and we’re running into a bunch of errors. Syntax errors and references to things that do not exist - are we missing something in the setup to use those?

:raising_hand_man: wkw replied

could u pls provide some logs or error msgs? some steps to reproduce would be nice as well

:raising_hand_man: dpg replied

create a project, download the swagger schema and paste in here

:raising_hand_man: dpg replied

https://editor.swagger.io/

:raising_hand_man: wkw replied

you should use the built-in one

:raising_hand_man: dpg replied

That’s what we are trying to do - the built in swagger spec file has errors

:raising_hand_man: wkw replied

pls check this out

https://docs.nocodb.com/developer-resources/accessing-apis

:raising_hand_man: dpg replied

that editor will show some errors

:raising_hand_man: dpg replied

if you paste the schema nocodb generates into it

:raising_hand_man: wkw replied

i mean built-in swagger ui

:raising_hand_man: dpg replied

I get that but the problem is we download the built in swagger and then we wanted to try to use it with a typescript code generator but we can’t, because the swagger document has syntax errors

:raising_hand_man: dpg replied

for example, "/auth/password/reset/": { is wrong

:raising_hand_man: wkw replied

can share some error msgs? n the steps to reproduce?

:raising_hand_man: dpg replied

should be ```“/auth/password/reset/{tokenId}”: {

```

:raising_hand_man: dpg replied

:raising_hand_man: dpg replied

1. Create project

2. Click Swagger APIs from project info to get to swagger UI

3. Click link at top to view the swagger.json

4. Copy all contents and paste into editor.swagger.io to view errors

:raising_hand_man: dpg replied

there are various syntax errors in the built in swagger docs which is preventing us from using code generators from it

:raising_hand_man: dpg replied

the editor.swagger.io shows all the errors, here is the one I mentioned before:

Autogenerated from discord


Join NocoDB’s community

DiscordTwitterRedditDocs