|
@@ -55,7 +55,6 @@ final class GeneratorOptions {
|
|
|
private(set) var generateServer = true
|
|
private(set) var generateServer = true
|
|
|
private(set) var generateClient = true
|
|
private(set) var generateClient = true
|
|
|
private(set) var generateTestClient = false
|
|
private(set) var generateTestClient = false
|
|
|
- private(set) var generatePayloadConformance = true
|
|
|
|
|
private(set) var protoToModuleMappings = ProtoFileToModuleMappings()
|
|
private(set) var protoToModuleMappings = ProtoFileToModuleMappings()
|
|
|
private(set) var fileNaming = FileNaming.FullPath
|
|
private(set) var fileNaming = FileNaming.FullPath
|
|
|
private(set) var extraModuleImports: [String] = []
|
|
private(set) var extraModuleImports: [String] = []
|
|
@@ -91,13 +90,6 @@ final class GeneratorOptions {
|
|
|
throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value)
|
|
throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- case "PayloadConformance":
|
|
|
|
|
- if let value = Bool(pair.value) {
|
|
|
|
|
- self.generatePayloadConformance = value
|
|
|
|
|
- } else {
|
|
|
|
|
- throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value)
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
case "ProtoPathModuleMappings":
|
|
case "ProtoPathModuleMappings":
|
|
|
if !pair.value.isEmpty {
|
|
if !pair.value.isEmpty {
|
|
|
do {
|
|
do {
|