-
Notifications
You must be signed in to change notification settings - Fork 330
fix: align CLI HelpText defaults and descriptions with JSON schema (Group 2) #3417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
980937a
2d9dcd3
1f4dd75
1154fbc
d62cc29
830751d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -149,7 +149,7 @@ public ConfigureOptions( | |
| ShowEffectivePermissions = showEffectivePermissions; | ||
| } | ||
|
|
||
| [Option("data-source.database-type", Required = false, HelpText = "Database type. Allowed values: MSSQL, PostgreSQL, CosmosDB_NoSQL, MySQL.")] | ||
| [Option("data-source.database-type", Required = false, HelpText = "Database type. Allowed values: mssql, postgresql, cosmosdb_nosql, cosmosdb_postgresql, mysql.")] | ||
| public string? DataSourceDatabaseType { get; } | ||
|
|
||
| [Option("data-source.connection-string", Required = false, HelpText = "Connection string for the data source.")] | ||
|
|
@@ -164,7 +164,7 @@ public ConfigureOptions( | |
| [Option("data-source.options.schema", Required = false, HelpText = "Schema path for Cosmos DB for NoSql.")] | ||
| public string? DataSourceOptionsSchema { get; } | ||
|
|
||
| [Option("data-source.options.set-session-context", Required = false, HelpText = "Enable session context. Allowed values: true (default), false.")] | ||
| [Option("data-source.options.set-session-context", Required = false, HelpText = "Enable session context. Allowed values: true, false.")] | ||
| public bool? DataSourceOptionsSetSessionContext { get; } | ||
|
|
||
| [Option("data-source.health.name", Required = false, HelpText = "Identifier for data source in health check report.")] | ||
|
|
@@ -176,7 +176,7 @@ public ConfigureOptions( | |
| [Option("data-source.user-delegated-auth.database-audience", Required = false, HelpText = "Database resource identifier for token acquisition (e.g., https://database.windows.net for Azure SQL).")] | ||
| public string? DataSourceUserDelegatedAuthDatabaseAudience { get; } | ||
|
|
||
| [Option("runtime.graphql.depth-limit", Required = false, HelpText = "Max allowed depth of the nested query. Allowed values: (0,2147483647] inclusive. Default is infinity. Use -1 to remove limit.")] | ||
| [Option("runtime.graphql.depth-limit", Required = false, HelpText = "Max allowed depth of a nested query. Allowed values: -1 (no limit) or 1..2147483647. Default: null (no limit).")] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not following why we say default is |
||
| public int? DepthLimit { get; } | ||
|
|
||
| [Option("runtime.graphql.enabled", Required = false, HelpText = "Enable DAB's GraphQL endpoint. Default: true (boolean).")] | ||
|
|
@@ -188,7 +188,7 @@ public ConfigureOptions( | |
| [Option("runtime.graphql.allow-introspection", Required = false, HelpText = "Allow/Deny GraphQL introspection requests in GraphQL Schema. Default: true (boolean).")] | ||
| public bool? RuntimeGraphQLAllowIntrospection { get; } | ||
|
|
||
| [Option("runtime.graphql.multiple-mutations.create.enabled", Required = false, HelpText = "Enable/Disable multiple-mutation create operations on DAB's generated GraphQL schema. Default: true (boolean).")] | ||
| [Option("runtime.graphql.multiple-mutations.create.enabled", Required = false, HelpText = "Enable/Disable multiple-mutation create operations on DAB's generated GraphQL schema. Default: false (boolean).")] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see some places where we still write the default value in the |
||
| public bool? RuntimeGraphQLMultipleMutationsCreateEnabled { get; } | ||
|
|
||
| [Option("runtime.rest.enabled", Required = false, HelpText = "Enable DAB's Rest endpoint. Default: true (boolean).")] | ||
|
|
@@ -245,7 +245,7 @@ public ConfigureOptions( | |
| [Option("runtime.compression.level", Required = false, HelpText = "Set the response compression level. Allowed values: optimal (default), fastest, none.")] | ||
| public CompressionLevel? RuntimeCompressionLevel { get; } | ||
|
|
||
| [Option("runtime.host.mode", Required = false, HelpText = "Set the host running mode of DAB in Development or Production. Default: Development.")] | ||
| [Option("runtime.host.mode", Required = false, HelpText = "Set the host running mode of DAB in Development or Production. Default: Production.")] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as previous comment |
||
| public HostMode? RuntimeHostMode { get; } | ||
|
|
||
| [Option("runtime.host.cors.origins", Required = false, HelpText = "Overwrite Allowed Origins in CORS. Default: [] (Space separated array of strings).")] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,7 +72,7 @@ public InitOptions( | |
| McpAggregateRecordsQueryTimeout = mcpAggregateRecordsQueryTimeout; | ||
| } | ||
|
|
||
| [Option("database-type", Required = true, HelpText = "Type of database to connect. Supported values: mssql, cosmosdb_nosql, cosmosdb_postgresql, mysql, postgresql, dwsql")] | ||
| [Option("database-type", Required = true, HelpText = "Type of database to connect. Supported values: mssql, cosmosdb_nosql, cosmosdb_postgresql, mysql, postgresql")] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am confused as to why we need to remove this type if in the documentation it says that we support it. And I thought we already supported this. Maybe I am just not aware of how this type is used. |
||
| public DatabaseType DatabaseType { get; } | ||
|
|
||
| [Option("connection-string", Required = false, HelpText = "(Default: '') Connection details to connect to the database.")] | ||
|
|
@@ -136,7 +136,7 @@ public InitOptions( | |
| public CliBool McpEnabled { get; } | ||
|
|
||
| // When true, DAB rejects extraneous/unmapped fields in the REST request body (strict mode). When false, extraneous fields are allowed and ignored. | ||
| [Option("rest.request-body-strict", Required = false, HelpText = "(Default: false) When true, rejects extraneous/unmapped fields in the REST request body. When false, allows and ignores them.")] | ||
| [Option("rest.request-body-strict", Required = false, HelpText = "When true, rejects extraneous/unmapped fields in the REST request body. When false, allows and ignores them.")] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this default to anything specifically? |
||
| public CliBool RestRequestBodyStrict { get; } | ||
|
|
||
| [Option("graphql.multiple-mutations.create.enabled", Required = false, HelpText = "(Default: false) Enables multiple create operation for GraphQL. Supported values: true, false.")] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.