Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Cli/Commands/EntityOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ public EntityOptions(
[Option("rest", Required = false, HelpText = "Route for rest api.")]
public string? RestRoute { get; }

[Option("rest.methods", Required = false, Separator = ',', HelpText = "HTTP actions to be supported for stored procedure. Specify the actions as a comma separated list. Valid HTTP actions are : [GET, POST, PUT, PATCH, DELETE]")]
[Option("rest.methods", Required = false, Separator = ',', HelpText = "HTTP actions to be supported for stored procedure. Specify the actions as a comma separated list. Valid HTTP actions are: [get, post, put, patch, delete]")]
public IEnumerable<string>? RestMethodsForStoredProcedure { get; }

[Option("graphql", Required = false, HelpText = "Type of graphQL.")]
public string? GraphQLType { get; }

[Option("graphql.operation", Required = false, HelpText = $"GraphQL operation to be supported for stored procedure. Valid operations are : [Query, Mutation] ")]
[Option("graphql.operation", Required = false, HelpText = "GraphQL operation to be supported for stored procedure. Valid operations are: [query, mutation]")]
public string? GraphQLOperationForStoredProcedure { get; }

[Option("fields.include", Required = false, Separator = ',', HelpText = "Fields that are allowed access to permission.")]
Expand Down
2 changes: 1 addition & 1 deletion src/Cli/Commands/InitOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public InitOptions(
[Option("set-session-context", Default = false, Required = false, HelpText = "Enable sending data to MsSql using session context.")]
public bool SetSessionContext { get; }

[Option("host-mode", Default = HostMode.Production, Required = false, HelpText = "Specify the Host mode - Development or Production")]
[Option("host-mode", Default = HostMode.Production, Required = false, HelpText = "Specify the Host mode - development or production")]
public HostMode HostMode { get; }

[Option("cors-origin", Separator = ',', Required = false, HelpText = "Specify the list of allowed origins.")]
Expand Down
6 changes: 3 additions & 3 deletions src/Cli/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ public static bool TryConvertRestMethodNameToRestMethod(string? method, out Supp
{
if (!Enum.TryParse(method, ignoreCase: true, out restMethod))
{
_logger.LogError("Invalid REST Method. Supported methods are {restMethods}.", string.Join(", ", Enum.GetNames<SupportedHttpVerb>()));
_logger.LogError("Invalid REST Method. Supported methods are {restMethods}.", string.Join(", ", Enum.GetNames<SupportedHttpVerb>().Select(n => n.ToLowerInvariant())));
return false;
}

Expand Down Expand Up @@ -652,8 +652,8 @@ public static bool TryConvertGraphQLOperationNameToGraphQLOperation(string? oper
{
_logger.LogError(
"Invalid GraphQL Operation. Supported operations are {queryName} and {mutationName}.",
GraphQLOperation.Query,
GraphQLOperation.Mutation);
nameof(GraphQLOperation.Query).ToLowerInvariant(),
nameof(GraphQLOperation.Mutation).ToLowerInvariant());
return false;
}

Expand Down