nextcloud / tables

🍱 Nextcloud tables app
https://apps.nextcloud.com/apps/tables
GNU Affero General Public License v3.0
143 stars 24 forks source link

build(openapi): fix ms typescript generation command #1221

Closed blizzz closed 2 months ago

blizzz commented 2 months ago

fixes the silent error when generating the openapi assets as described here: https://github.com/nextcloud/tables/pull/1215#issuecomment-2236178507

0.7 is not affected, this happened after upgrading a dev dep here on main

provokateurin commented 2 months ago

Can you shortly explain why the previous command wasn't working?

blizzz commented 2 months ago

Can you shortly explain why the previous command wasn't working?

Two things:

1.

✘ Globbing has been deprecated in favor of redocly.yaml’s apis keys

Did not like the asterisk with openapi*.json as input. Since we only have one input file, we do not need it.

2.

Error: EISDIR: illegal operation on a directory, open '/srv/http/nextcloud/master/apps-repos/tables/src/types/openapi/' at Object.writeFileSync (node:fs:2368:20)

Expects now a file name as --output|-o parameter, previously a folder was fine.