mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-30 12:03:34 -06:00
[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>
This commit is contained in:
parent
68c8fe67cc
commit
fc3741365c
672 changed files with 135624 additions and 713 deletions
134
vendor/modules.txt
vendored
134
vendor/modules.txt
vendored
|
|
@ -69,11 +69,23 @@ github.com/DmitriyVTitov/size
|
|||
## explicit; go 1.19
|
||||
github.com/KimMachineGun/automemlimit
|
||||
github.com/KimMachineGun/automemlimit/memlimit
|
||||
# github.com/Masterminds/goutils v1.1.1
|
||||
## explicit
|
||||
github.com/Masterminds/goutils
|
||||
# github.com/Masterminds/semver/v3 v3.2.0
|
||||
## explicit; go 1.18
|
||||
github.com/Masterminds/semver/v3
|
||||
# github.com/Masterminds/sprig/v3 v3.2.3
|
||||
## explicit; go 1.13
|
||||
github.com/Masterminds/sprig/v3
|
||||
# github.com/abema/go-mp4 v1.2.0
|
||||
## explicit; go 1.14
|
||||
github.com/abema/go-mp4
|
||||
github.com/abema/go-mp4/internal/bitio
|
||||
github.com/abema/go-mp4/internal/util
|
||||
# github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
|
||||
## explicit; go 1.13
|
||||
github.com/asaskevich/govalidator
|
||||
# github.com/aymerick/douceur v0.2.0
|
||||
## explicit
|
||||
github.com/aymerick/douceur/css
|
||||
|
|
@ -152,7 +164,7 @@ github.com/davecgh/go-spew/spew
|
|||
# github.com/disintegration/imaging v1.6.2
|
||||
## explicit
|
||||
github.com/disintegration/imaging
|
||||
# github.com/docker/go-units v0.4.0
|
||||
# github.com/docker/go-units v0.5.0
|
||||
## explicit
|
||||
github.com/docker/go-units
|
||||
# github.com/dsoprea/go-exif/v3 v3.0.0-20210625224831-a6301f85c82b
|
||||
|
|
@ -176,6 +188,9 @@ github.com/dsoprea/go-utility/v2/image
|
|||
# github.com/dustin/go-humanize v1.0.1
|
||||
## explicit; go 1.16
|
||||
github.com/dustin/go-humanize
|
||||
# github.com/felixge/httpsnoop v1.0.3
|
||||
## explicit; go 1.13
|
||||
github.com/felixge/httpsnoop
|
||||
# github.com/fsnotify/fsnotify v1.7.0
|
||||
## explicit; go 1.17
|
||||
github.com/fsnotify/fsnotify
|
||||
|
|
@ -223,6 +238,53 @@ github.com/go-logr/logr/funcr
|
|||
# github.com/go-logr/stdr v1.2.2
|
||||
## explicit; go 1.16
|
||||
github.com/go-logr/stdr
|
||||
# github.com/go-openapi/analysis v0.21.4
|
||||
## explicit; go 1.13
|
||||
github.com/go-openapi/analysis
|
||||
github.com/go-openapi/analysis/internal/debug
|
||||
github.com/go-openapi/analysis/internal/flatten/normalize
|
||||
github.com/go-openapi/analysis/internal/flatten/operations
|
||||
github.com/go-openapi/analysis/internal/flatten/replace
|
||||
github.com/go-openapi/analysis/internal/flatten/schutils
|
||||
github.com/go-openapi/analysis/internal/flatten/sortref
|
||||
# github.com/go-openapi/errors v0.20.4
|
||||
## explicit; go 1.14
|
||||
github.com/go-openapi/errors
|
||||
# github.com/go-openapi/inflect v0.19.0
|
||||
## explicit
|
||||
github.com/go-openapi/inflect
|
||||
# github.com/go-openapi/jsonpointer v0.19.6
|
||||
## explicit; go 1.13
|
||||
github.com/go-openapi/jsonpointer
|
||||
# github.com/go-openapi/jsonreference v0.20.2
|
||||
## explicit; go 1.13
|
||||
github.com/go-openapi/jsonreference
|
||||
github.com/go-openapi/jsonreference/internal
|
||||
# github.com/go-openapi/loads v0.21.2
|
||||
## explicit; go 1.13
|
||||
github.com/go-openapi/loads
|
||||
github.com/go-openapi/loads/fmts
|
||||
# github.com/go-openapi/runtime v0.26.0
|
||||
## explicit; go 1.18
|
||||
github.com/go-openapi/runtime
|
||||
github.com/go-openapi/runtime/logger
|
||||
github.com/go-openapi/runtime/middleware
|
||||
github.com/go-openapi/runtime/middleware/denco
|
||||
github.com/go-openapi/runtime/middleware/header
|
||||
github.com/go-openapi/runtime/middleware/untyped
|
||||
github.com/go-openapi/runtime/security
|
||||
# github.com/go-openapi/spec v0.20.9
|
||||
## explicit; go 1.13
|
||||
github.com/go-openapi/spec
|
||||
# github.com/go-openapi/strfmt v0.21.7
|
||||
## explicit; go 1.19
|
||||
github.com/go-openapi/strfmt
|
||||
# github.com/go-openapi/swag v0.22.4
|
||||
## explicit; go 1.18
|
||||
github.com/go-openapi/swag
|
||||
# github.com/go-openapi/validate v0.22.1
|
||||
## explicit; go 1.14
|
||||
github.com/go-openapi/validate
|
||||
# github.com/go-playground/form/v4 v4.2.1
|
||||
## explicit; go 1.13
|
||||
github.com/go-playground/form/v4
|
||||
|
|
@ -236,6 +298,16 @@ github.com/go-playground/universal-translator
|
|||
# github.com/go-playground/validator/v10 v10.15.5
|
||||
## explicit; go 1.18
|
||||
github.com/go-playground/validator/v10
|
||||
# github.com/go-swagger/go-swagger v0.30.5
|
||||
## explicit; go 1.19
|
||||
github.com/go-swagger/go-swagger/cmd/swagger
|
||||
github.com/go-swagger/go-swagger/cmd/swagger/commands
|
||||
github.com/go-swagger/go-swagger/cmd/swagger/commands/diff
|
||||
github.com/go-swagger/go-swagger/cmd/swagger/commands/generate
|
||||
github.com/go-swagger/go-swagger/cmd/swagger/commands/initcmd
|
||||
github.com/go-swagger/go-swagger/codescan
|
||||
github.com/go-swagger/go-swagger/generator
|
||||
github.com/go-swagger/go-swagger/scan
|
||||
# github.com/go-xmlfmt/xmlfmt v0.0.0-20211206191508-7fd73a941850
|
||||
## explicit
|
||||
github.com/go-xmlfmt/xmlfmt
|
||||
|
|
@ -283,6 +355,9 @@ github.com/gorilla/css/scanner
|
|||
# github.com/gorilla/feeds v1.1.2
|
||||
## explicit; go 1.20
|
||||
github.com/gorilla/feeds
|
||||
# github.com/gorilla/handlers v1.5.1
|
||||
## explicit; go 1.14
|
||||
github.com/gorilla/handlers
|
||||
# github.com/gorilla/securecookie v1.1.1
|
||||
## explicit
|
||||
github.com/gorilla/securecookie
|
||||
|
|
@ -320,6 +395,12 @@ github.com/hashicorp/hcl/hcl/token
|
|||
github.com/hashicorp/hcl/json/parser
|
||||
github.com/hashicorp/hcl/json/scanner
|
||||
github.com/hashicorp/hcl/json/token
|
||||
# github.com/huandu/xstrings v1.3.3
|
||||
## explicit; go 1.12
|
||||
github.com/huandu/xstrings
|
||||
# github.com/imdario/mergo v0.3.12
|
||||
## explicit; go 1.13
|
||||
github.com/imdario/mergo
|
||||
# github.com/inconshreveable/mousetrap v1.1.0
|
||||
## explicit; go 1.18
|
||||
github.com/inconshreveable/mousetrap
|
||||
|
|
@ -348,9 +429,15 @@ github.com/jackc/pgx/v5/stdlib
|
|||
## explicit; go 1.19
|
||||
github.com/jackc/puddle/v2
|
||||
github.com/jackc/puddle/v2/internal/genstack
|
||||
# github.com/jessevdk/go-flags v1.5.0
|
||||
## explicit; go 1.15
|
||||
github.com/jessevdk/go-flags
|
||||
# github.com/jinzhu/inflection v1.0.0
|
||||
## explicit
|
||||
github.com/jinzhu/inflection
|
||||
# github.com/josharian/intern v1.0.0
|
||||
## explicit; go 1.5
|
||||
github.com/josharian/intern
|
||||
# github.com/json-iterator/go v1.1.12
|
||||
## explicit; go 1.12
|
||||
github.com/json-iterator/go
|
||||
|
|
@ -364,12 +451,23 @@ github.com/klauspost/compress/zlib
|
|||
# github.com/klauspost/cpuid/v2 v2.2.6
|
||||
## explicit; go 1.15
|
||||
github.com/klauspost/cpuid/v2
|
||||
# github.com/kr/pretty v0.3.1
|
||||
## explicit; go 1.12
|
||||
github.com/kr/pretty
|
||||
# github.com/kr/text v0.2.0
|
||||
## explicit
|
||||
github.com/kr/text
|
||||
# github.com/leodido/go-urn v1.2.4
|
||||
## explicit; go 1.16
|
||||
github.com/leodido/go-urn
|
||||
# github.com/magiconair/properties v1.8.7
|
||||
## explicit; go 1.19
|
||||
github.com/magiconair/properties
|
||||
# github.com/mailru/easyjson v0.7.7
|
||||
## explicit; go 1.12
|
||||
github.com/mailru/easyjson/buffer
|
||||
github.com/mailru/easyjson/jlexer
|
||||
github.com/mailru/easyjson/jwriter
|
||||
# github.com/mattn/go-isatty v0.0.20
|
||||
## explicit; go 1.15
|
||||
github.com/mattn/go-isatty
|
||||
|
|
@ -402,9 +500,15 @@ github.com/minio/minio-go/v7/pkg/tags
|
|||
# github.com/minio/sha256-simd v1.0.1
|
||||
## explicit; go 1.17
|
||||
github.com/minio/sha256-simd
|
||||
# github.com/mitchellh/copystructure v1.2.0
|
||||
## explicit; go 1.15
|
||||
github.com/mitchellh/copystructure
|
||||
# github.com/mitchellh/mapstructure v1.5.0
|
||||
## explicit; go 1.14
|
||||
github.com/mitchellh/mapstructure
|
||||
# github.com/mitchellh/reflectwalk v1.0.2
|
||||
## explicit
|
||||
github.com/mitchellh/reflectwalk
|
||||
# github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
|
||||
## explicit
|
||||
github.com/modern-go/concurrent
|
||||
|
|
@ -460,6 +564,9 @@ github.com/quasoft/memstore
|
|||
# github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
|
||||
## explicit; go 1.12
|
||||
github.com/remyoudompheng/bigfft
|
||||
# github.com/rogpeppe/go-internal v1.10.0
|
||||
## explicit; go 1.19
|
||||
github.com/rogpeppe/go-internal/fmtsort
|
||||
# github.com/rs/xid v1.5.0
|
||||
## explicit; go 1.12
|
||||
github.com/rs/xid
|
||||
|
|
@ -469,6 +576,9 @@ github.com/sagikazarmark/locafero
|
|||
# github.com/sagikazarmark/slog-shim v0.1.0
|
||||
## explicit; go 1.20
|
||||
github.com/sagikazarmark/slog-shim
|
||||
# github.com/shopspring/decimal v1.2.0
|
||||
## explicit; go 1.13
|
||||
github.com/shopspring/decimal
|
||||
# github.com/sirupsen/logrus v1.9.3
|
||||
## explicit; go 1.13
|
||||
github.com/sirupsen/logrus
|
||||
|
|
@ -714,6 +824,9 @@ github.com/tmthrgd/go-hex
|
|||
# github.com/tomnomnom/linkheader v0.0.0-20180905144013-02ca5825eb80
|
||||
## explicit
|
||||
github.com/tomnomnom/linkheader
|
||||
# github.com/toqueteos/webbrowser v1.2.0
|
||||
## explicit; go 1.12
|
||||
github.com/toqueteos/webbrowser
|
||||
# github.com/twitchyliquid64/golang-asm v0.15.1
|
||||
## explicit; go 1.13
|
||||
github.com/twitchyliquid64/golang-asm/asm/arch
|
||||
|
|
@ -791,6 +904,15 @@ github.com/yuin/goldmark/util
|
|||
# github.com/zeebo/xxh3 v1.0.2
|
||||
## explicit; go 1.17
|
||||
github.com/zeebo/xxh3
|
||||
# go.mongodb.org/mongo-driver v1.11.3
|
||||
## explicit; go 1.13
|
||||
go.mongodb.org/mongo-driver/bson
|
||||
go.mongodb.org/mongo-driver/bson/bsoncodec
|
||||
go.mongodb.org/mongo-driver/bson/bsonoptions
|
||||
go.mongodb.org/mongo-driver/bson/bsonrw
|
||||
go.mongodb.org/mongo-driver/bson/bsontype
|
||||
go.mongodb.org/mongo-driver/bson/primitive
|
||||
go.mongodb.org/mongo-driver/x/bsonx/bsoncore
|
||||
# go.opentelemetry.io/otel v1.20.0
|
||||
## explicit; go 1.20
|
||||
go.opentelemetry.io/otel
|
||||
|
|
@ -889,6 +1011,7 @@ golang.org/x/crypto/internal/alias
|
|||
golang.org/x/crypto/internal/poly1305
|
||||
golang.org/x/crypto/pbkdf2
|
||||
golang.org/x/crypto/ripemd160
|
||||
golang.org/x/crypto/scrypt
|
||||
golang.org/x/crypto/sha3
|
||||
golang.org/x/crypto/ssh
|
||||
golang.org/x/crypto/ssh/internal/bcrypt_pbkdf
|
||||
|
|
@ -911,6 +1034,8 @@ golang.org/x/image/vp8l
|
|||
golang.org/x/image/webp
|
||||
# golang.org/x/mod v0.14.0
|
||||
## explicit; go 1.18
|
||||
golang.org/x/mod/internal/lazyregexp
|
||||
golang.org/x/mod/module
|
||||
golang.org/x/mod/semver
|
||||
# golang.org/x/net v0.21.0
|
||||
## explicit; go 1.18
|
||||
|
|
@ -969,10 +1094,15 @@ golang.org/x/text/unicode/norm
|
|||
golang.org/x/text/width
|
||||
# golang.org/x/tools v0.17.0
|
||||
## explicit; go 1.18
|
||||
golang.org/x/tools/go/ast/astutil
|
||||
golang.org/x/tools/go/buildutil
|
||||
golang.org/x/tools/go/gcexportdata
|
||||
golang.org/x/tools/go/internal/cgo
|
||||
golang.org/x/tools/go/internal/packagesdriver
|
||||
golang.org/x/tools/go/loader
|
||||
golang.org/x/tools/go/packages
|
||||
golang.org/x/tools/go/types/objectpath
|
||||
golang.org/x/tools/imports
|
||||
golang.org/x/tools/internal/event
|
||||
golang.org/x/tools/internal/event/core
|
||||
golang.org/x/tools/internal/event/keys
|
||||
|
|
@ -980,6 +1110,8 @@ golang.org/x/tools/internal/event/label
|
|||
golang.org/x/tools/internal/event/tag
|
||||
golang.org/x/tools/internal/gcimporter
|
||||
golang.org/x/tools/internal/gocommand
|
||||
golang.org/x/tools/internal/gopathwalk
|
||||
golang.org/x/tools/internal/imports
|
||||
golang.org/x/tools/internal/packagesinternal
|
||||
golang.org/x/tools/internal/pkgbits
|
||||
golang.org/x/tools/internal/tokeninternal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue