Skip to content

Commit c78668a

Browse files
committed
Serialize evaluation context to OFREP
1 parent 0d686b2 commit c78668a

File tree

5 files changed

+498
-310
lines changed

5 files changed

+498
-310
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ $(GEN_SWIFTS): $(OPENAPI_SPEC) $(OPENAPI_GEN_SWIFT)
1515
--mode types \
1616
--mode client \
1717
--naming-strategy idiomatic \
18+
--access-modifier package \
1819
--output-directory $(GEN_SWIFT_ROOT)
1920

2021
.PHONY: generate

Sources/OFREP/Generated/Client.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import struct Foundation.Date
1111
#endif
1212
import HTTPTypes
1313
/// OFREP define the protocol for remote flag evaluations
14-
internal struct Client: APIProtocol {
14+
package struct Client: APIProtocol {
1515
/// The underlying HTTP client.
1616
private let client: UniversalClient
1717
/// Creates a new client.
@@ -22,7 +22,7 @@ internal struct Client: APIProtocol {
2222
/// - configuration: A set of configuration values for the client.
2323
/// - transport: A transport that performs HTTP operations.
2424
/// - middlewares: A list of middlewares to call before the transport.
25-
internal init(
25+
package init(
2626
serverURL: Foundation.URL,
2727
configuration: Configuration = .init(),
2828
transport: any ClientTransport,
@@ -46,7 +46,7 @@ internal struct Client: APIProtocol {
4646
///
4747
/// - Remark: HTTP `POST /ofrep/v1/evaluate/flags/{key}`.
4848
/// - Remark: Generated from `#/paths//ofrep/v1/evaluate/flags/{key}/post`.
49-
internal func postOfrepV1EvaluateFlagsKey(_ input: Operations.PostOfrepV1EvaluateFlagsKey.Input) async throws -> Operations.PostOfrepV1EvaluateFlagsKey.Output {
49+
package func postOfrepV1EvaluateFlagsKey(_ input: Operations.PostOfrepV1EvaluateFlagsKey.Input) async throws -> Operations.PostOfrepV1EvaluateFlagsKey.Output {
5050
try await client.send(
5151
input: input,
5252
forOperation: Operations.PostOfrepV1EvaluateFlagsKey.id,
@@ -200,7 +200,7 @@ internal struct Client: APIProtocol {
200200
///
201201
/// - Remark: HTTP `POST /ofrep/v1/evaluate/flags`.
202202
/// - Remark: Generated from `#/paths//ofrep/v1/evaluate/flags/post`.
203-
internal func postOfrepV1EvaluateFlags(_ input: Operations.PostOfrepV1EvaluateFlags.Input) async throws -> Operations.PostOfrepV1EvaluateFlags.Output {
203+
package func postOfrepV1EvaluateFlags(_ input: Operations.PostOfrepV1EvaluateFlags.Input) async throws -> Operations.PostOfrepV1EvaluateFlags.Output {
204204
try await client.send(
205205
input: input,
206206
forOperation: Operations.PostOfrepV1EvaluateFlags.id,
@@ -345,7 +345,7 @@ internal struct Client: APIProtocol {
345345
///
346346
/// - Remark: HTTP `GET /ofrep/v1/configuration`.
347347
/// - Remark: Generated from `#/paths//ofrep/v1/configuration/get`.
348-
internal func getOfrepV1Configuration(_ input: Operations.GetOfrepV1Configuration.Input) async throws -> Operations.GetOfrepV1Configuration.Output {
348+
package func getOfrepV1Configuration(_ input: Operations.GetOfrepV1Configuration.Input) async throws -> Operations.GetOfrepV1Configuration.Output {
349349
try await client.send(
350350
input: input,
351351
forOperation: Operations.GetOfrepV1Configuration.id,

0 commit comments

Comments
 (0)