Skip to content

Commit

Permalink
Fix service-name validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddunkin committed Aug 23, 2024
1 parent b949f16 commit 19983e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fsdgenswagger/FsdGenSwaggerApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public sealed class FsdGenSwaggerApp : CodeGeneratorApp
protected override FileGeneratorSettings CreateSettings(ArgsReader args)
{
var serviceName = args.ReadOption("service-name");
if (serviceName != null && ServiceDefinitionUtility.IsValidName(serviceName))
if (serviceName != null && !ServiceDefinitionUtility.IsValidName(serviceName))
throw new ArgsReaderException($"Invalid service name '{serviceName}'.");

return new SwaggerGeneratorSettings
Expand Down

0 comments on commit 19983e1

Please sign in to comment.