mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-08-05 16:00:20 +00:00
Picks up: - kubernetes/kube-openapi#625: update the go-openapi/swag family to v0.27.1 - kubernetes/kube-openapi#622: propagate nullable field between SMD and OpenAPI schemas Transitive dependency changes: - github.com/go-openapi/swag (and submodules) v0.25.4 -> v0.27.1 - github.com/go-openapi/jsonpointer v0.22.4 -> v1.0.0 - github.com/go-openapi/jsonreference v0.21.4 -> v1.0.0 - github.com/go-openapi/swag/jsonname removed (package now provided by jsonpointer) - github.com/go-openapi/swag/pools added No changes to hack/unwanted-dependencies.json needed.
17 lines
549 B
Go
17 lines
549 B
Go
// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package jsonname
|
|
|
|
import "reflect"
|
|
|
|
// providerIface is an unexported compile-time contract that every name provider in this package is
|
|
// expected to satisfy.
|
|
//
|
|
// It mirrors the interface declared by the main consumer of this module:
|
|
// [github.com/go-openapi/jsonpointer.NameProvider].
|
|
type providerIface interface {
|
|
GetGoName(subject any, name string) (string, bool)
|
|
GetGoNameForType(tpe reflect.Type, name string) (string, bool)
|
|
}
|