diff --git a/packages/org.openapis.v3.contrib/PklProject b/packages/org.openapis.v3.contrib/PklProject index 7531277..6040fc1 100644 --- a/packages/org.openapis.v3.contrib/PklProject +++ b/packages/org.openapis.v3.contrib/PklProject @@ -1,5 +1,5 @@ //===----------------------------------------------------------------------===// -// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved. +// Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ amends "../basePklProject.pkl" package { - version = "1.0.4" + version = "1.0.5" } dependencies { diff --git a/packages/org.openapis.v3.contrib/PklProject.deps.json b/packages/org.openapis.v3.contrib/PklProject.deps.json index cd6f085..9c525fa 100644 --- a/packages/org.openapis.v3.contrib/PklProject.deps.json +++ b/packages/org.openapis.v3.contrib/PklProject.deps.json @@ -3,7 +3,7 @@ "resolvedDependencies": { "package://pkg.pkl-lang.org/pkl-pantry/org.openapis.v3@2": { "type": "local", - "uri": "projectpackage://pkg.pkl-lang.org/pkl-pantry/org.openapis.v3@2.1.2", + "uri": "projectpackage://pkg.pkl-lang.org/pkl-pantry/org.openapis.v3@2.1.3", "path": "../org.openapis.v3" } } diff --git a/packages/org.openapis.v3/PklProject b/packages/org.openapis.v3/PklProject index d2ea3d1..5f8bda1 100644 --- a/packages/org.openapis.v3/PklProject +++ b/packages/org.openapis.v3/PklProject @@ -1,5 +1,5 @@ //===----------------------------------------------------------------------===// -// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved. +// Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,5 +17,5 @@ amends "../basePklProject.pkl" package { - version = "2.1.2" + version = "2.1.3" } diff --git a/packages/org.openapis.v3/SecurityScheme.pkl b/packages/org.openapis.v3/SecurityScheme.pkl index d4d6016..c9521a3 100644 --- a/packages/org.openapis.v3/SecurityScheme.pkl +++ b/packages/org.openapis.v3/SecurityScheme.pkl @@ -1,5 +1,5 @@ //===----------------------------------------------------------------------===// -// Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved. +// Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ module org.openapis.v3.SecurityScheme import "OAuthFlows.pkl" typealias SecuritySchemeType = "apiKey"|"http"|"oauth2"|"openIdConnect" +typealias SecuritySchemeIn = "query"|"header"|"cookie" /// The type of the security scheme. type: SecuritySchemeType @@ -30,10 +31,10 @@ type: SecuritySchemeType description: String? /// The name of the header, query or cookie parameter to be used. -name: String +name: String?((this != null).implies(type == "apiKey")) /// The location of the API key. -`in`: "query"|"header"|"cookie" +`in`: SecuritySchemeIn?((this != null).implies(type == "apiKey")) scheme: String((this == "bearer").implies(bearerFormat != null))