From 58c99b2e8ffd8173c9a940bb8deb772b441814d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20BIDON?= Date: Wed, 17 Dec 2025 10:02:01 +0100 Subject: [PATCH 1/2] chore(licensing): added correct code attribution for the denco middleware MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric BIDON --- NOTICE | 45 +++++++++++++++++++++++++++ README.md | 3 ++ middleware/denco/router.go | 2 ++ middleware/denco/router_bench_test.go | 2 ++ middleware/denco/router_test.go | 2 ++ middleware/denco/server.go | 2 ++ middleware/denco/server_test.go | 2 ++ middleware/denco/util.go | 2 ++ middleware/denco/util_test.go | 2 ++ 9 files changed, 62 insertions(+) create mode 100644 NOTICE diff --git a/NOTICE b/NOTICE new file mode 100644 index 00000000..b9153aae --- /dev/null +++ b/NOTICE @@ -0,0 +1,45 @@ +Copyright 2015-2025 go-swagger maintainers + +// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers +// SPDX-License-Identifier: Apache-2.0 + +This software library, github.com/go-openapi/jsonpointer, includes software developed +by the go-swagger and go-openapi maintainers ("go-swagger maintainers"). + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this software except in compliance with the License. + +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0. + +This software is copied from, derived from, and inspired by other original software products. +It ships with copies of other software which license terms are recalled below. + +The original software was authored in 2014 by Naoya Inada + +https://github.com/naoina/denco +=========================== + +// SPDX-FileCopyrightText: Copyright (c) 2014 Naoya Inada +// SPDX-License-Identifier: MIT + +Copyright (c) 2014 Naoya Inada + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md index 9e15b1ad..fd7148d2 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,6 @@ Moving forward, we want to : ## Licensing This library ships under the [SPDX-License-Identifier: Apache-2.0](./LICENSE). + +See the license [NOTICE](./NOTICE), which recalls the licensing terms of all the pieces of software +on top of which it has been built. diff --git a/middleware/denco/router.go b/middleware/denco/router.go index b371a2cf..9aec99bc 100644 --- a/middleware/denco/router.go +++ b/middleware/denco/router.go @@ -1,5 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers // SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright (c) 2014 Naoya Inada +// SPDX-License-Identifier: MIT // Package denco provides fast URL router. package denco diff --git a/middleware/denco/router_bench_test.go b/middleware/denco/router_bench_test.go index 12cfc48d..9aff7bb0 100644 --- a/middleware/denco/router_bench_test.go +++ b/middleware/denco/router_bench_test.go @@ -1,5 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers // SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright (c) 2014 Naoya Inada +// SPDX-License-Identifier: MIT package denco_test diff --git a/middleware/denco/router_test.go b/middleware/denco/router_test.go index 0a13c6fa..3a766e8b 100644 --- a/middleware/denco/router_test.go +++ b/middleware/denco/router_test.go @@ -1,5 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers // SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright (c) 2014 Naoya Inada +// SPDX-License-Identifier: MIT package denco_test diff --git a/middleware/denco/server.go b/middleware/denco/server.go index 8f04d93d..45ab7260 100644 --- a/middleware/denco/server.go +++ b/middleware/denco/server.go @@ -1,5 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers // SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright (c) 2014 Naoya Inada +// SPDX-License-Identifier: MIT package denco diff --git a/middleware/denco/server_test.go b/middleware/denco/server_test.go index 0e00418a..839af13f 100644 --- a/middleware/denco/server_test.go +++ b/middleware/denco/server_test.go @@ -1,5 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers // SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright (c) 2014 Naoya Inada +// SPDX-License-Identifier: MIT package denco_test diff --git a/middleware/denco/util.go b/middleware/denco/util.go index f002bc46..e7da4226 100644 --- a/middleware/denco/util.go +++ b/middleware/denco/util.go @@ -1,5 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers // SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright (c) 2014 Naoya Inada +// SPDX-License-Identifier: MIT package denco diff --git a/middleware/denco/util_test.go b/middleware/denco/util_test.go index 4c94cabc..dcd7e51e 100644 --- a/middleware/denco/util_test.go +++ b/middleware/denco/util_test.go @@ -1,5 +1,7 @@ // SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers // SPDX-License-Identifier: Apache-2.0 +// SPDX-FileCopyrightText: Copyright (c) 2014 Naoya Inada +// SPDX-License-Identifier: MIT package denco_test From bbf14dd9a17a60da8abda44bf19ef229373249f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20BIDON?= Date: Wed, 17 Dec 2025 10:16:21 +0100 Subject: [PATCH 2/2] doc: added doc.go headers for godoc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric BIDON --- client-middleware/opentracing/doc.go | 7 +++++++ doc.go | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 client-middleware/opentracing/doc.go create mode 100644 doc.go diff --git a/client-middleware/opentracing/doc.go b/client-middleware/opentracing/doc.go new file mode 100644 index 00000000..aad8724f --- /dev/null +++ b/client-middleware/opentracing/doc.go @@ -0,0 +1,7 @@ +// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers +// SPDX-License-Identifier: Apache-2.0 + +// Package opentracing supports opentracing instrumentation for the runtime client. +// +// It is provided for backward-compatibility for users who can't transition to OTEL. +package opentracing diff --git a/doc.go b/doc.go new file mode 100644 index 00000000..300c6b15 --- /dev/null +++ b/doc.go @@ -0,0 +1,6 @@ +// SPDX-FileCopyrightText: Copyright 2015-2025 go-swagger maintainers +// SPDX-License-Identifier: Apache-2.0 + +// Package runtime exposes runtime client and server components +// for go-openapi toolkit. +package runtime