Skip to content

Commit 2c177eb

Browse files
committed
add correct license header to each file
1 parent 138c608 commit 2c177eb

17 files changed

+157
-44
lines changed

Sources/HttpApi/APIGatewayV2+HTTPRequest.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift OpenAPI Lambda open source project
4+
//
5+
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
6+
// and the Swift OpenAPI Lambda project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
115
import AWSLambdaEvents
216
import HTTPTypes
317
import OpenAPIRuntime

Sources/HttpApi/OpenAPILambdaHttpApi.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift OpenAPI Lambda open source project
4+
//
5+
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
6+
// and the Swift OpenAPI Lambda project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
115
import Foundation
216
import AWSLambdaRuntime
317
import AWSLambdaEvents

Sources/OpenAPILambda.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift OpenAPI Lambda open source project
4+
//
5+
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
6+
// and the Swift OpenAPI Lambda project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
115
import Foundation
216
import AWSLambdaRuntime
317
import OpenAPIRuntime

Sources/OpenAPILambdaHandler.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift OpenAPI Lambda open source project
4+
//
5+
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
6+
// and the Swift OpenAPI Lambda project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
115
import AWSLambdaRuntime
216
import OpenAPIRuntime
317

Sources/OpenAPILambdaTransport.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift OpenAPI Lambda open source project
4+
//
5+
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
6+
// and the Swift OpenAPI Lambda project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
115
import Foundation
216
import HTTPTypes
317
import OpenAPIRuntime

Sources/Router/OpenAPILambdaRouter.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the Swift OpenAPI Lambda open source project
4+
//
5+
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
6+
// and the Swift OpenAPI Lambda project authors
7+
// Licensed under Apache License v2.0
8+
//
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
11+
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
115
import AWSLambdaEvents
216
import Foundation
317
import HTTPTypes

Sources/Router/OpenAPILambdaRouterNode.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
//===----------------------------------------------------------------------===//
12
//
2-
// File.swift
3+
// This source file is part of the Swift OpenAPI Lambda open source project
34
//
5+
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
6+
// and the Swift OpenAPI Lambda project authors
7+
// Licensed under Apache License v2.0
48
//
5-
// Created by Stormacq, Sebastien on 12/12/2023.
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
611
//
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
715
import HTTPTypes
816

917
/// A node in the graph

Sources/Router/OpenAPILambdaRouterTrie.swift

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
//===----------------------------------------------------------------------===//
12
//
2-
// File.swift
3+
// This source file is part of the Swift OpenAPI Lambda open source project
34
//
5+
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
6+
// and the Swift OpenAPI Lambda project authors
7+
// Licensed under Apache License v2.0
48
//
5-
// Created by Stormacq, Sebastien on 12/12/2023.
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
611
//
7-
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
815
import HTTPTypes
916

1017
/// A Trie router implementation

Tests/OpenAPILambdaTests/Router/RouterGraphTest.swift

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
//===----------------------------------------------------------------------===//
12
//
2-
// RouterGraphTest.swift
3+
// This source file is part of the Swift OpenAPI Lambda open source project
34
//
5+
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
6+
// and the Swift OpenAPI Lambda project authors
7+
// Licensed under Apache License v2.0
48
//
5-
// Created by Stormacq, Sebastien on 11/12/2023.
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
611
//
7-
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
815
import HTTPTypes
916
import OpenAPIRuntime
1017

Tests/OpenAPILambdaTests/Router/RouterNodeTest.swift

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
//===----------------------------------------------------------------------===//
12
//
2-
// RouterNodeTest.swift
3+
// This source file is part of the Swift OpenAPI Lambda open source project
34
//
5+
// Copyright (c) 2023 Amazon.com, Inc. or its affiliates
6+
// and the Swift OpenAPI Lambda project authors
7+
// Licensed under Apache License v2.0
48
//
5-
// Created by Stormacq, Sebastien on 11/12/2023.
9+
// See LICENSE.txt for license information
10+
// See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
611
//
7-
12+
// SPDX-License-Identifier: Apache-2.0
13+
//
14+
//===----------------------------------------------------------------------===//
815
import HTTPTypes
916
import OpenAPIRuntime
1017

scripts/check-for-broken-symlinks.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/env bash
22
##===----------------------------------------------------------------------===##
33
##
4-
## This source file is part of the SwiftOpenAPIGenerator open source project
4+
## This source file is part of the Swift OpenAPI Lambda open source project
55
##
6-
## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors
6+
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates
7+
## and the Swift OpenAPI Lambda project authors
78
## Licensed under Apache License v2.0
89
##
910
## See LICENSE.txt for license information
10-
## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors
11+
## See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
1112
##
1213
## SPDX-License-Identifier: Apache-2.0
1314
##

scripts/check-for-docc-warnings.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/env bash
22
##===----------------------------------------------------------------------===##
33
##
4-
## This source file is part of the SwiftOpenAPIGenerator open source project
4+
## This source file is part of the Swift OpenAPI Lambda open source project
55
##
6-
## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors
6+
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates
7+
## and the Swift OpenAPI Lambda project authors
78
## Licensed under Apache License v2.0
89
##
910
## See LICENSE.txt for license information
10-
## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors
11+
## See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
1112
##
1213
## SPDX-License-Identifier: Apache-2.0
1314
##

scripts/check-for-unacceptable-language.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/env bash
22
##===----------------------------------------------------------------------===##
33
##
4-
## This source file is part of the SwiftOpenAPIGenerator open source project
4+
## This source file is part of the Swift OpenAPI Lambda open source project
55
##
6-
## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors
6+
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates
7+
## and the Swift OpenAPI Lambda project authors
78
## Licensed under Apache License v2.0
89
##
910
## See LICENSE.txt for license information
10-
## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors
11+
## See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
1112
##
1213
## SPDX-License-Identifier: Apache-2.0
1314
##

scripts/check-license-headers.sh

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/env bash
22
##===----------------------------------------------------------------------===##
33
##
4-
## This source file is part of the SwiftOpenAPIGenerator open source project
4+
## This source file is part of the Swift OpenAPI Lambda open source project
55
##
6-
## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors
6+
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates
7+
## and the Swift OpenAPI Lambda project authors
78
## Licensed under Apache License v2.0
89
##
910
## See LICENSE.txt for license information
10-
## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors
11+
## See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
1112
##
1213
## SPDX-License-Identifier: Apache-2.0
1314
##
@@ -23,13 +24,14 @@ REPO_ROOT="$(git -C "${CURRENT_SCRIPT_DIR}" rev-parse --show-toplevel)"
2324

2425
EXPECTED_FILE_HEADER_TEMPLATE="@@===----------------------------------------------------------------------===@@
2526
@@
26-
@@ This source file is part of the SwiftOpenAPIGenerator open source project
27+
@@ This source file is part of the Swift OpenAPI Lambda open source project
2728
@@
28-
@@ Copyright (c) YEARS Apple Inc. and the SwiftOpenAPIGenerator project authors
29+
@@ Copyright (c) YEARS Amazon.com, Inc. or its affiliates
30+
@@ and the Swift OpenAPI Lambda project authors
2931
@@ Licensed under Apache License v2.0
3032
@@
3133
@@ See LICENSE.txt for license information
32-
@@ See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors
34+
@@ See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
3335
@@
3436
@@ SPDX-License-Identifier: Apache-2.0
3537
@@
@@ -53,8 +55,6 @@ read -ra PATHS_TO_CHECK_FOR_LICENSE <<< "$( \
5355
":(exclude)README.md" \
5456
":(exclude)SECURITY.md" \
5557
":(exclude)scripts/unacceptable-language.txt" \
56-
":(exclude)Tests/PetstoreConsumerTests/Generated" \
57-
":(exclude)Tests/OpenAPIGeneratorReferenceTests/Resources/ReferenceSources/*" \
5858
":(exclude)docker/*" \
5959
":(exclude)**/*.docc/*" \
6060
":(exclude)**/.gitignore" \
@@ -63,20 +63,14 @@ read -ra PATHS_TO_CHECK_FOR_LICENSE <<< "$( \
6363
":(exclude)**/README.md" \
6464
":(exclude)**/openapi.yaml" \
6565
":(exclude)**/openapi.yml" \
66-
":(exclude)**/petstore.yaml" \
6766
":(exclude)**/openapi-generator-config.yaml" \
6867
":(exclude)**/openapi-generator-config.yml" \
6968
":(exclude)**/docker-compose.yaml" \
7069
":(exclude)**/docker/*" \
7170
":(exclude)**/.dockerignore" \
72-
":(exclude)Plugins/OpenAPIGenerator/PluginsShared" \
73-
":(exclude)Plugins/OpenAPIGeneratorCommand/PluginsShared" \
74-
":(exclude)Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp.*" \
75-
":(exclude)Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp/Assets.xcassets/*" \
76-
":(exclude)Examples/HelloWorldiOSClientAppExample/HelloWorldiOSClientApp/Preview*" \
77-
":(exclude)Examples/**/Generated*" \
7871
":(exclude)**/Makefile" \
7972
":(exclude)**/*.html" \
73+
":(exclude)**/*.gif" \
8074
| xargs -0 \
8175
)"
8276

scripts/generate-contributors-list.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/env bash
22
##===----------------------------------------------------------------------===##
33
##
4-
## This source file is part of the SwiftOpenAPIGenerator open source project
4+
## This source file is part of the Swift OpenAPI Lambda open source project
55
##
6-
## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors
6+
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates
7+
## and the Swift OpenAPI Lambda project authors
78
## Licensed under Apache License v2.0
89
##
910
## See LICENSE.txt for license information
10-
## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors
11+
## See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
1112
##
1213
## SPDX-License-Identifier: Apache-2.0
1314
##

scripts/run-swift-format.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/env bash
22
##===----------------------------------------------------------------------===##
33
##
4-
## This source file is part of the SwiftOpenAPIGenerator open source project
4+
## This source file is part of the Swift OpenAPI Lambda open source project
55
##
6-
## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors
6+
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates
7+
## and the Swift OpenAPI Lambda project authors
78
## Licensed under Apache License v2.0
89
##
910
## See LICENSE.txt for license information
10-
## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors
11+
## See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
1112
##
1213
## SPDX-License-Identifier: Apache-2.0
1314
##

scripts/soundness.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
#!/usr/bin/env bash
22
##===----------------------------------------------------------------------===##
33
##
4-
## This source file is part of the SwiftOpenAPIGenerator open source project
4+
## This source file is part of the Swift OpenAPI Lambda open source project
55
##
6-
## Copyright (c) 2023 Apple Inc. and the SwiftOpenAPIGenerator project authors
6+
## Copyright (c) 2023 Amazon.com, Inc. or its affiliates
7+
## and the Swift OpenAPI Lambda project authors
78
## Licensed under Apache License v2.0
89
##
910
## See LICENSE.txt for license information
10-
## See CONTRIBUTORS.txt for the list of SwiftOpenAPIGenerator project authors
11+
## See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
1112
##
1213
## SPDX-License-Identifier: Apache-2.0
1314
##

0 commit comments

Comments
 (0)