mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-30 17:30:34 +08:00
Vendor Update (#14496)
* update code.gitea.io/sdk/gitea v0.13.1 -> v0.13.2 * update github.com/go-swagger/go-swagger v0.25.0 -> v0.26.0 * update github.com/google/uuid v1.1.2 -> v1.2.0 * update github.com/klauspost/compress v1.11.3 -> v1.11.7 * update github.com/lib/pq 083382b7e6fc -> v1.9.0 * update github.com/markbates/goth v1.65.0 -> v1.66.1 * update github.com/mattn/go-sqlite3 v1.14.4 -> v1.14.6 * update github.com/mgechev/revive 246eac737dc7 -> v1.0.3 * update github.com/minio/minio-go/v7 v7.0.6 -> v7.0.7 * update github.com/niklasfasching/go-org v1.3.2 -> v1.4.0 * update github.com/olivere/elastic/v7 v7.0.21 -> v7.0.22 * update github.com/pquerna/otp v1.2.0 -> v1.3.0 * update github.com/xanzy/go-gitlab v0.39.0 -> v0.42.0 * update github.com/yuin/goldmark v1.2.1 -> v1.3.1
This commit is contained in:
go.modgo.sum
vendor
code.gitea.io/sdk/gitea
admin_cron.goclient.gogo.modissue.goissue_comment.goissue_label.goissue_reaction.goissue_subscription.goissue_tracked_time.gonotifications.gooauth2.gopull.gopull_review.gorelease.gorepo.gorepo_branch.gorepo_branch_protection.gorepo_commit.gorepo_file.gorepo_migrate.gorepo_transfer.gosettings.goversion.go
github.com
asaskevich/govalidator
.travis.ymlCODE_OF_CONDUCT.mdLICENSEREADME.mdarrays.goconverter.gogo.modnumerics.gopatterns.gotypes.govalidator.go
fatih/color
felixge/httpsnoop
.gitignore.travis.ymlLICENSE.txtMakefileREADME.mdcapture_metrics.godocs.gogo.modwrap_generated_gteq_1.8.gowrap_generated_lt_1.8.go
go-openapi
analysis
errors
jsonpointer
jsonreference
loads
runtime
spec
.golangci.yml.travis.ymlREADME.mdappveyor.ymlbindata.gocache.gocontact_info.goerrors.goexpander.gogo.modgo.sumheader.goitems.golicense.gonormalizer.gooperation.goparameter.goproperties.goref.goresolver.goresponse.goschema.goschema_loader.gosecurity_scheme.gospec.govalidations.go
strfmt
swag
validate
go-swagger/go-swagger
cmd/swagger
commands
diff.go
swagger.godiff
checks.gocompatibility.godifftypes.gonode.goreporting.goschema.gospec_analyser.gospec_difference.gotype_adapters.go
expand.gogenerate.gogenerate
mixin.goserve.goversion.gocodescan
generator
.gitignorebindata.goclient.goformats.golanguage.gomodel.gooperation.goshared.gospec.gostructs.gosupport.gotemplate_repo.gotypes.go
scan
google/uuid
gorilla/handlers
klauspost/compress
flate
huff0
zstd
kr/pretty
lib/pq
magiconair/properties
markbates/goth
mattn
go-colorable
go-runewidth
go-sqlite3
minio
md5-simd
minio-go/v7
mitchellh/mapstructure
niklasfasching/go-org/org
olivere/elastic/v7
client.godocker-compose.ymlgo.modindices_delete_index_template.goindices_delete_template.goindices_exists_template.goindices_get_index_template.goindices_get_template.goindices_put_index_template.goindices_put_template.goxpack_async_search_delete.goxpack_async_search_get.goxpack_async_search_submit.go
pquerna/otp
rivo/uniseg
spf13/afero
xanzy/go-gitlab
.golangci.yml.travis.ymlapplications.gocommits.godeployments.goevent_parsing.goevent_webhook_types.goevents.gogitlab.gogroup_hooks.gogroup_milestones.gogroups.goissue_links.goissues.gojobs.gonotes.gopipelines.goproject_mirror.goprojects.goreleases.gorepository_files.gorunners.goservices.gousers.govalidate.go
yuin/goldmark
go.mongodb.org/mongo-driver
bson
bsoncodec
byte_slice_codec.godefault_value_decoders.godefault_value_encoders.gomap_codec.gopointer_codec.goregistry.goslice_codec.gostring_codec.gostruct_codec.gotime_codec.gouint_codec.go
bsonoptions
bsonrw
doc.goprimitive
raw_value.gox/bsonx/bsoncore
golang.org/x
net
oauth2
README.md
google
sys
text
tools
go
analysis
ast/astutil
buildutil
internal
packages
imports
internal
event/core
gocommand
imports
packagesinternal
typesinternal
gopkg.in/yaml.v2
modules.txt
10
vendor/github.com/go-openapi/runtime/middleware/router.go
generated
vendored
10
vendor/github.com/go-openapi/runtime/middleware/router.go
generated
vendored
@ -22,6 +22,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/go-openapi/runtime/security"
|
||||
"github.com/go-openapi/swag"
|
||||
|
||||
"github.com/go-openapi/analysis"
|
||||
"github.com/go-openapi/errors"
|
||||
@ -418,6 +419,15 @@ func (d *defaultRouteBuilder) AddRoute(method, path string, operation *spec.Oper
|
||||
produces := d.analyzer.ProducesFor(operation)
|
||||
parameters := d.analyzer.ParamsFor(method, strings.TrimPrefix(path, bp))
|
||||
|
||||
// add API defaults if not part of the spec
|
||||
if defConsumes := d.api.DefaultConsumes(); defConsumes != "" && !swag.ContainsStringsCI(consumes, defConsumes) {
|
||||
consumes = append(consumes, defConsumes)
|
||||
}
|
||||
|
||||
if defProduces := d.api.DefaultProduces(); defProduces != "" && !swag.ContainsStringsCI(produces, defProduces) {
|
||||
produces = append(produces, defProduces)
|
||||
}
|
||||
|
||||
record := denco.NewRecord(pathConverter.ReplaceAllString(path, ":$1"), &routeEntry{
|
||||
BasePath: bp,
|
||||
PathPattern: path,
|
||||
|
Reference in New Issue
Block a user