Files
2026-06-12 13:43:37 +02:00

15 lines
543 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)
}