mirror of
1
Fork 0
gotosocial/internal/api/model
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
..
account.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
admin.go [feature] Add `/api/v1/admin/debug/apurl` endpoint (#2359) 2023-11-27 14:02:52 +00:00
announcement.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
announcementreaction.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
application.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
attachment.go [chore/frontend] Refactor status templates slightly, put polls behind CWs if present (#2419) 2023-12-05 12:43:07 +01:00
block.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
card.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
content.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
context.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
conversation.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
domain.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
emoji.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
emojicategory.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
featuredtag.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
field.go [feature] Enable federation in/out of profile PropertyValue fields (#1722) 2023-05-09 11:16:10 +01:00
filter.go [feature] Filters v1 (#2594) 2024-03-06 11:15:58 +01:00
filterv1.go [feature] Filters v1 (#2594) 2024-03-06 11:15:58 +01:00
headerfilter.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
history.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
instance.go [Frontend] Settings for profile fields (#1885) 2023-06-13 12:21:26 +02:00
instancev1.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
instancev2.go [feature] Parse instance descriptors as markdown, show T&C on /about (#2481) 2024-01-05 13:39:31 +01:00
list.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
marker.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
mention.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
multistatus.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
notification.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
oauth.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
paging.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
poll.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
preferences.go [feature] Implement the preferences client API (#1740) 2023-05-06 17:42:58 +02:00
pushsubscription.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
relationship.go [feature] Add `requested_by` to relationship model (#2672) 2024-02-20 17:50:54 +00:00
report.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
results.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
rule.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
scheduledstatus.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
search.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
source.go [feature] Account alias / move API + db models (#2518) 2024-01-16 16:22:44 +00:00
status.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
tag.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
token.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
user.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
well-known.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00