Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .license_header_template
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
@@
@@ This source file is part of the Swift OpenAPI Lambda open source project
@@
@@ Copyright (c) YEARS Amazon.com, Inc. or its affiliates
@@ and the Swift OpenAPI Lambda project authors
@@ Copyright Swift OpenAPI Lambda project authors
@@ Copyright (c) YEARS Amazon.com, Inc. or its affiliates.
@@ Licensed under Apache License v2.0
@@
@@ See LICENSE.txt for license information
Expand Down
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sébastien Stormacq <stormacq@amazon.com> <sebastien.stormacq@gmail.com>
11 changes: 7 additions & 4 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
For the purpose of tracking copyright, this is the list of individuals and
organizations who have contributed source code to Hummingbird OpenAPI Transport.
organizations who have contributed source code to Swift OpenAPI Lambda.

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

- Amazon.com, Inc. (all contributors with '@amazon.com')
- Apple Inc. (all contributors with '@apple.com')
- Amazon.com, Inc. or its affiliates (all contributors with @amazon.com)

### Contributors

- Sébastien Stormacq (stormacq@amazon.com)
- Emlyn Murphy <me@emlyn.net>
- Franz Busch <f.busch@apple.com>
- Sébastien Stormacq <stormacq@amazon.com>
- Victor Hugo Barros <heyzooi@users.noreply.github.com>

**Updating this list**

Please do not edit this file manually. It is generated using `./scripts/generate-contributors-list.sh`. If a name is misspelled or appearing multiple times: add an entry in `./.mailmap`
Please do not edit this file manually. It is generated using `bash ./scripts/generate-contributors-list.sh`. If a name is misspelled or appearing multiple times: add an entry in `./.mailmap`
18 changes: 2 additions & 16 deletions Examples/quoteapi/Sources/LambdaAuthorizer/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand All @@ -13,20 +13,6 @@
//
//===----------------------------------------------------------------------===//

//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2024 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

import AWSLambdaEvents
import AWSLambdaRuntime

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Examples/quoteapi/Sources/QuoteAPI/QuoteService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Sources/Exports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2025 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Sources/HttpApi/APIGatewayV2+HTTPRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Sources/HttpApi/OpenAPILambdaHttpApi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Sources/Middleware/LoggingMiddleware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Sources/OpenAPILambdaHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Sources/OpenAPILambdaService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
11 changes: 6 additions & 5 deletions Sources/OpenAPILambdaTransport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand All @@ -30,9 +30,10 @@ public typealias OpenAPILambdaResponse = (HTTPResponse, String?)
public typealias OpenAPILambdaRequestParameters = [String: Substring]

/// an OpenAPI handler
public typealias OpenAPIHandler = @Sendable (HTTPRequest, HTTPBody?, ServerRequestMetadata) async throws -> (
HTTPResponse, HTTPBody?
)
public typealias OpenAPIHandler =
@Sendable (HTTPRequest, HTTPBody?, ServerRequestMetadata) async throws -> (
HTTPResponse, HTTPBody?
)

/// Lambda Transport for OpenAPI generator
public struct OpenAPILambdaTransport: ServerTransport, Sendable {
Expand Down
4 changes: 2 additions & 2 deletions Sources/Router/OpenAPILambdaRouter+SimplifiedAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Sources/Router/OpenAPILambdaRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Sources/Router/OpenAPILambdaRouterNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Sources/Router/OpenAPILambdaRouterTrie.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Tests/OpenAPILambdaTests/Router/RouterGraphTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions Tests/OpenAPILambdaTests/Router/RouterNodeTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// This source file is part of the Swift OpenAPI Lambda open source project
//
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
// and the Swift OpenAPI Lambda project authors
// Copyright Swift OpenAPI Lambda project authors
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
4 changes: 2 additions & 2 deletions scripts/check_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
##
## This source file is part of the Swift OpenAPI Lambda open source project
##
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates
## and the Swift OpenAPI Lambda project authors
## Copyright Swift OpenAPI Lambda project authors
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
## Licensed under Apache License v2.0
##
## See LICENSE.txt for license information
Expand Down
9 changes: 5 additions & 4 deletions scripts/check_license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
##
## This source file is part of the Swift OpenAPI Lambda open source project
##
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates
## and the Swift OpenAPI Lambda project authors
## Copyright Swift OpenAPI Lambda project authors
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
## Licensed under Apache License v2.0
##
## See LICENSE.txt for license information
Expand Down Expand Up @@ -37,15 +37,16 @@ fatal() { error "$@"; exit 1; }
test -n "${PROJECT_NAME:-}" || fatal "PROJECT_NAME unset"

if [ -f .license_header_template ]; then
log "Using custom license header template"
# allow projects to override the license header template
expected_file_header_template=$(cat .license_header_template)
else
expected_file_header_template="@@===----------------------------------------------------------------------===@@
@@
@@ This source file is part of the ${PROJECT_NAME} open source project
@@
@@ Copyright (c) YEARS Apple Inc. and the ${PROJECT_NAME} project authors
@@ Licensed under Apache License v2.0
@@ Copyright Swift OpenAPI Lambda project authors
@@ Copyright (c) YEARS Amazon.com, Inc. or its affiliates.
@@
@@ See LICENSE.txt for license information
@@ See CONTRIBUTORS.txt for the list of ${PROJECT_NAME} project authors
Expand Down
7 changes: 4 additions & 3 deletions scripts/generate-contributors-list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
##
## This source file is part of the Swift OpenAPI Lambda open source project
##
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates
## and the Swift OpenAPI Lambda project authors
## Copyright Swift OpenAPI Lambda project authors
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates.
## Licensed under Apache License v2.0
##
## See LICENSE.txt for license information
Expand Down Expand Up @@ -48,14 +48,15 @@ contributors=$( cd "$here"/.. && git shortlog -es | cut -f2 | sed 's/^/- /' )

cat > "$here/../CONTRIBUTORS.txt" <<- EOF
For the purpose of tracking copyright, this is the list of individuals and
organizations who have contributed source code to SwiftOpenAPIGenerator.
organizations who have contributed source code to Swift OpenAPI Lambda.

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

- Amazon.com, Inc. (all contributors with '@amazon.com')
- Apple Inc. (all contributors with '@apple.com')

### Contributors
Expand Down