From 72e57185f9af686dabb2eedf50630504c4cabce6 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sat, 7 Sep 2024 11:17:36 +0200 Subject: [PATCH] Added the CONTRIBUTORS file to the package. --- CONTRIBUTORS | 14 ++++++++++++++ Makefile | 14 +++++++++++++- Package.swift | 12 ++++++++++++ .../Internal/Extensions/Client+Properties.swift | 4 ++-- .../Extensions/DateFormatter+Properties.swift | 4 ++-- Sources/Internal/Protocols/KeyNameFilter.swift | 4 ++-- Sources/Internal/Protocols/KeyNameModel.swift | 4 ++-- .../Internal/Transcoders/ISODateTranscoder.swift | 4 ++-- Sources/Public/Errors/AmiiboServiceError.swift | 4 ++-- Sources/Public/Filters/AmiiboFilter.swift | 4 ++-- Sources/Public/Filters/AmiiboSeriesFilter.swift | 4 ++-- Sources/Public/Filters/AmiiboTypeFilter.swift | 4 ++-- Sources/Public/Filters/GameCharacterFilter.swift | 4 ++-- Sources/Public/Filters/GameSeriesFilter.swift | 4 ++-- Sources/Public/Models/Amiibo.swift | 4 ++-- Sources/Public/Models/Amiibo/Amiibo+Game.swift | 4 ++-- Sources/Public/Models/Amiibo/Amiibo+Platform.swift | 4 ++-- Sources/Public/Models/Amiibo/Amiibo+Release.swift | 4 ++-- Sources/Public/Models/Amiibo/Amiibo+Usage.swift | 4 ++-- Sources/Public/Models/AmiiboSeries.swift | 4 ++-- Sources/Public/Models/AmiiboType.swift | 4 ++-- Sources/Public/Models/GameCharacter.swift | 4 ++-- Sources/Public/Models/GameSeries.swift | 4 ++-- Sources/Public/Services/AmiiboService.swift | 4 ++-- Sources/openapi-generator-config.yaml | 12 ++++++++++++ Sources/openapi.yaml | 12 ++++++++++++ 26 files changed, 105 insertions(+), 43 deletions(-) create mode 100644 CONTRIBUTORS diff --git a/CONTRIBUTORS b/CONTRIBUTORS new file mode 100644 index 0000000..1688426 --- /dev/null +++ b/CONTRIBUTORS @@ -0,0 +1,14 @@ +For the purpose of tracking copyright, this is the list of individuals and +organizations who have contributed source code to this Swift package. + +For employees of an organization/company where the copyright of work done +by employees of that company is held by the company itself, only the company +needs to be listed here. + +## COPYRIGHT HOLDERS + +- Röck+Cöde VoF. (all contributors with '@rock-n-code.com') + +## PROJECT AUTHORS + +- Javier Cicchelli diff --git a/Makefile b/Makefile index 2f62c51..7107182 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,15 @@ +# ===----------------------------------------------------------------------=== +# +# This source file is part of the AmiiboAPI open source project +# +# Copyright (c) 2024 Röck+Cöde VoF. and the AmiiboAPI project authors +# Licensed under the EUPL 1.2 or later. +# +# See LICENSE for license information +# See CONTRIBUTORS for the list of AmiiboAPI project authors +# +# ===----------------------------------------------------------------------=== + # ENVIRONMENT VARIABLES environment ?= .env @@ -39,4 +51,4 @@ package-update: ## Updates the SPM package dependencies help: ## Prints the written documentation for all the defined tasks @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) -.DEFAULT_GOAL := help \ No newline at end of file +.DEFAULT_GOAL := help diff --git a/Package.swift b/Package.swift index 893bd34..2a0813b 100644 --- a/Package.swift +++ b/Package.swift @@ -1,5 +1,17 @@ // swift-tools-version: 5.9 +//===----------------------------------------------------------------------=== +// +// This source file is part of the AmiiboAPI open source project +// +// Copyright (c) 2024 Röck+Cöde VoF. and the AmiiboAPI project authors +// Licensed under the EUPL 1.2 or later. +// +// See LICENSE for license information +// See CONTRIBUTORS for the list of AmiiboAPI project authors +// +//===----------------------------------------------------------------------=== + import PackageDescription let package = Package( diff --git a/Sources/Internal/Extensions/Client+Properties.swift b/Sources/Internal/Extensions/Client+Properties.swift index 3449f41..23f090c 100644 --- a/Sources/Internal/Extensions/Client+Properties.swift +++ b/Sources/Internal/Extensions/Client+Properties.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== import OpenAPIURLSession diff --git a/Sources/Internal/Extensions/DateFormatter+Properties.swift b/Sources/Internal/Extensions/DateFormatter+Properties.swift index b40d382..6c9cce9 100644 --- a/Sources/Internal/Extensions/DateFormatter+Properties.swift +++ b/Sources/Internal/Extensions/DateFormatter+Properties.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== import Foundation diff --git a/Sources/Internal/Protocols/KeyNameFilter.swift b/Sources/Internal/Protocols/KeyNameFilter.swift index d5faf61..29cd4a4 100644 --- a/Sources/Internal/Protocols/KeyNameFilter.swift +++ b/Sources/Internal/Protocols/KeyNameFilter.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== protocol KeyNameFilter { diff --git a/Sources/Internal/Protocols/KeyNameModel.swift b/Sources/Internal/Protocols/KeyNameModel.swift index 4cfeb06..f1c023a 100644 --- a/Sources/Internal/Protocols/KeyNameModel.swift +++ b/Sources/Internal/Protocols/KeyNameModel.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== protocol KeyNameModel: Sendable { diff --git a/Sources/Internal/Transcoders/ISODateTranscoder.swift b/Sources/Internal/Transcoders/ISODateTranscoder.swift index 9ae1a3e..2a9a91d 100644 --- a/Sources/Internal/Transcoders/ISODateTranscoder.swift +++ b/Sources/Internal/Transcoders/ISODateTranscoder.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== import Foundation import OpenAPIRuntime diff --git a/Sources/Public/Errors/AmiiboServiceError.swift b/Sources/Public/Errors/AmiiboServiceError.swift index 4391117..db86577 100644 --- a/Sources/Public/Errors/AmiiboServiceError.swift +++ b/Sources/Public/Errors/AmiiboServiceError.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== public enum AmiiboServiceError: Error { case badRequest diff --git a/Sources/Public/Filters/AmiiboFilter.swift b/Sources/Public/Filters/AmiiboFilter.swift index b0c7c29..4d714be 100644 --- a/Sources/Public/Filters/AmiiboFilter.swift +++ b/Sources/Public/Filters/AmiiboFilter.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== public struct AmiiboFilter { diff --git a/Sources/Public/Filters/AmiiboSeriesFilter.swift b/Sources/Public/Filters/AmiiboSeriesFilter.swift index c230ce9..1691904 100644 --- a/Sources/Public/Filters/AmiiboSeriesFilter.swift +++ b/Sources/Public/Filters/AmiiboSeriesFilter.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== public struct AmiiboSeriesFilter: KeyNameFilter { diff --git a/Sources/Public/Filters/AmiiboTypeFilter.swift b/Sources/Public/Filters/AmiiboTypeFilter.swift index cf48760..438ab51 100644 --- a/Sources/Public/Filters/AmiiboTypeFilter.swift +++ b/Sources/Public/Filters/AmiiboTypeFilter.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== public struct AmiiboTypeFilter: KeyNameFilter { diff --git a/Sources/Public/Filters/GameCharacterFilter.swift b/Sources/Public/Filters/GameCharacterFilter.swift index 345dac3..0fede7e 100644 --- a/Sources/Public/Filters/GameCharacterFilter.swift +++ b/Sources/Public/Filters/GameCharacterFilter.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== public struct GameCharacterFilter: KeyNameFilter { diff --git a/Sources/Public/Filters/GameSeriesFilter.swift b/Sources/Public/Filters/GameSeriesFilter.swift index 060988d..f02d59c 100644 --- a/Sources/Public/Filters/GameSeriesFilter.swift +++ b/Sources/Public/Filters/GameSeriesFilter.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== public struct GameSeriesFilter: KeyNameFilter { diff --git a/Sources/Public/Models/Amiibo.swift b/Sources/Public/Models/Amiibo.swift index f53d900..1518d9b 100644 --- a/Sources/Public/Models/Amiibo.swift +++ b/Sources/Public/Models/Amiibo.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== import Foundation diff --git a/Sources/Public/Models/Amiibo/Amiibo+Game.swift b/Sources/Public/Models/Amiibo/Amiibo+Game.swift index a820c11..1e2b450 100644 --- a/Sources/Public/Models/Amiibo/Amiibo+Game.swift +++ b/Sources/Public/Models/Amiibo/Amiibo+Game.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== extension Amiibo { public struct Game: Sendable { diff --git a/Sources/Public/Models/Amiibo/Amiibo+Platform.swift b/Sources/Public/Models/Amiibo/Amiibo+Platform.swift index 36c9ec0..66ed86d 100644 --- a/Sources/Public/Models/Amiibo/Amiibo+Platform.swift +++ b/Sources/Public/Models/Amiibo/Amiibo+Platform.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== extension Amiibo { public struct Platform: Sendable { diff --git a/Sources/Public/Models/Amiibo/Amiibo+Release.swift b/Sources/Public/Models/Amiibo/Amiibo+Release.swift index 7bcbfff..8e5adab 100644 --- a/Sources/Public/Models/Amiibo/Amiibo+Release.swift +++ b/Sources/Public/Models/Amiibo/Amiibo+Release.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== import Foundation diff --git a/Sources/Public/Models/Amiibo/Amiibo+Usage.swift b/Sources/Public/Models/Amiibo/Amiibo+Usage.swift index d2bda39..7b738b9 100644 --- a/Sources/Public/Models/Amiibo/Amiibo+Usage.swift +++ b/Sources/Public/Models/Amiibo/Amiibo+Usage.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== extension Amiibo { public struct Usage: Sendable { diff --git a/Sources/Public/Models/AmiiboSeries.swift b/Sources/Public/Models/AmiiboSeries.swift index 68f00f0..5a6c814 100644 --- a/Sources/Public/Models/AmiiboSeries.swift +++ b/Sources/Public/Models/AmiiboSeries.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== public struct AmiiboSeries: KeyNameModel { diff --git a/Sources/Public/Models/AmiiboType.swift b/Sources/Public/Models/AmiiboType.swift index 0a75874..2c57ee6 100644 --- a/Sources/Public/Models/AmiiboType.swift +++ b/Sources/Public/Models/AmiiboType.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== public struct AmiiboType: KeyNameModel { diff --git a/Sources/Public/Models/GameCharacter.swift b/Sources/Public/Models/GameCharacter.swift index 652ea4d..2421104 100644 --- a/Sources/Public/Models/GameCharacter.swift +++ b/Sources/Public/Models/GameCharacter.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== public struct GameCharacter: KeyNameModel { diff --git a/Sources/Public/Models/GameSeries.swift b/Sources/Public/Models/GameSeries.swift index a445472..25d0ec8 100644 --- a/Sources/Public/Models/GameSeries.swift +++ b/Sources/Public/Models/GameSeries.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== public struct GameSeries: KeyNameModel { diff --git a/Sources/Public/Services/AmiiboService.swift b/Sources/Public/Services/AmiiboService.swift index f0bdb2b..270eaf9 100644 --- a/Sources/Public/Services/AmiiboService.swift +++ b/Sources/Public/Services/AmiiboService.swift @@ -1,4 +1,4 @@ -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== // // This source file is part of the AmiiboAPI open source project // @@ -8,7 +8,7 @@ // See LICENSE for license information // See CONTRIBUTORS for the list of AmiiboAPI project authors // -//===----------------------------------------------------------------------===// +//===----------------------------------------------------------------------=== import Foundation import OpenAPIRuntime diff --git a/Sources/openapi-generator-config.yaml b/Sources/openapi-generator-config.yaml index 1df6f28..5babde7 100644 --- a/Sources/openapi-generator-config.yaml +++ b/Sources/openapi-generator-config.yaml @@ -1,3 +1,15 @@ +# ===----------------------------------------------------------------------=== +# +# This source file is part of the AmiiboAPI open source project +# +# Copyright (c) 2024 Röck+Cöde VoF. and the AmiiboAPI project authors +# Licensed under the EUPL 1.2 or later. +# +# See LICENSE for license information +# See CONTRIBUTORS for the list of AmiiboAPI project authors +# +# ===----------------------------------------------------------------------=== + generate: - types - client diff --git a/Sources/openapi.yaml b/Sources/openapi.yaml index 72282b0..b69ca5d 100644 --- a/Sources/openapi.yaml +++ b/Sources/openapi.yaml @@ -1,3 +1,15 @@ +# ===----------------------------------------------------------------------=== +# +# This source file is part of the AmiiboAPI open source project +# +# Copyright (c) 2024 Röck+Cöde VoF. and the AmiiboAPI project authors +# Licensed under the EUPL 1.2 or later. +# +# See LICENSE for license information +# See CONTRIBUTORS for the list of AmiiboAPI project authors +# +# ===----------------------------------------------------------------------=== + openapi: '3.1.0' info: title: Amiibo API service