Skip to content

Commit

Permalink
Merge branch 'main' into wkt-again
Browse files Browse the repository at this point in the history
  • Loading branch information
glbrntt authored Dec 12, 2024
2 parents 696031b + 9b79693 commit 6691f2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ let defaultSwiftSettings: [SwiftSetting] = [
.swiftLanguageMode(.v6),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("InternalImportsByDefault"),
.enableUpcomingFeature("MemberImportVisibility"),
]

let targets: [Target] = [
Expand Down
8 changes: 4 additions & 4 deletions Sources/protoc-gen-grpc-swift/Options.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ struct GeneratorOptions {
}

case "Server":
if let value = Bool(pair.value) {
if let value = Bool(pair.value.lowercased()) {
self.generateServer = value
} else {
throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value)
}

case "Client":
if let value = Bool(pair.value) {
if let value = Bool(pair.value.lowercased()) {
self.generateClient = value
} else {
throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value)
Expand Down Expand Up @@ -142,14 +142,14 @@ struct GeneratorOptions {
}

case "ReflectionData":
if let value = Bool(pair.value) {
if let value = Bool(pair.value.lowercased()) {
self.generateReflectionData = value
} else {
throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value)
}

case "UseAccessLevelOnImports":
if let value = Bool(pair.value) {
if let value = Bool(pair.value.lowercased()) {
self.useAccessLevelOnImports = value
} else {
throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value)
Expand Down

0 comments on commit 6691f2c

Please sign in to comment.