mirror of
1
Fork 0
gotosocial/vendor
Vyr Cossont fc3741365c
[bugfix] Fix Swagger spec and add test script (#2698)
* Add Swagger spec test script

* Fix Swagger spec errors not related to statuses with polls

* Add API tests that post a status with a poll

* Fix creating a status with a poll from form params

* Fix Swagger spec errors related to statuses with polls (this is the last error)

* Fix Swagger spec warnings not related to unused definitions

* Suppress a duplicate list update params definition that was somehow causing wrong param names

* Add Swagger test to CI

- updates Drone config
- vendorizes go-swagger
- fixes a file extension issue that caused the test script to generate JSON instead of YAML with the vendorized version

* Put `Sample: ` on its own line everywhere

* Remove unused id param from emojiCategoriesGet

* Add 5 more pairs of profile fields to account update API Swagger

* Remove Swagger prefix from dummy fields

It makes the generated code look weird

* Manually annotate params for statusCreate operation

* Fix all remaining Swagger spec warnings

- Change some models into operation parameters
- Ignore models that already correspond to manually documented operation parameters but can't be trivially changed (those with file fields)

* Documented that creating a status with scheduled_at isn't implemented yet

* sign drone.yml

* Fix filter API Swagger errors

* fixup! Fix filter API Swagger errors

---------

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2024-03-06 18:05:45 +01:00
..
codeberg.org update go-structr v0.2.0 => v0.3.0 to fix possible hash collision issues (#2586) 2024-01-29 15:13:53 +00:00
github.com [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
go.mongodb.org/mongo-driver [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
go.opentelemetry.io [chore] Downgrade OTEL libraries to 1.20 (#2546) 2024-01-21 11:34:12 +01:00
go.uber.org [chore] update viper version (#2539) 2024-01-17 14:54:30 +00:00
golang.org/x [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
google.golang.org [chore] update otel -> v1.20.0 (#2358) 2023-11-13 11:08:02 +01:00
gopkg.in [chore]: Bump github.com/coreos/go-oidc/v3 from 3.4.0 to 3.5.0 (#1322) 2023-01-09 08:23:49 +00:00
modernc.org [chore]: Bump modernc.org/sqlite from 1.28.0 to 1.29.2 (#2718) 2024-03-04 09:42:11 +00:00
mvdan.cc/xurls/v2 [chore]: Bump mvdan.cc/xurls/v2 from 2.4.0 to 2.5.0 (#1702) 2023-04-19 13:44:20 +02:00
modules.txt [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00