ConfigurationSchema only adds a schema for the main resource, not named resources #8377
Open
1 task done
Labels
area-integrations
Issues pertaining to Aspire Integrations packages
Is there an existing issue for this?
Describe the bug
Consider a sample service with a dependency
consider I have the following code in my service
It would be nice having autocomplete in specific event hub configuration, maybe the generated json-schema should have an additional properties where they value can also be the mapping of the object?
no autocomplete here

Expected Behavior
autocomplete for named resource same as the common resource has.
the configuration pattern seems to not only be for azure but all resources
redis:
https://github.com/dotnet/aspire/blob/22d5ec4c07d614c6b5551acf95df4fa9b575d144/src/Components/Aspire.StackExchange.Redis/AspireRedisExtensions.cs
note the binding
configSection.Bind(settings)
- the common configurationnamedConfigSection.Bind(settings);
the named configurationazure:
https://github.com/dotnet/aspire/blob/f5e596bb038ac396487da4350f78223ebdb9dd26/src/Components/Common/AzureComponent.cs
BindSettingsToConfiguration(settings, configSection);
- the common configurationBindSettingsToConfiguration(settings, configSection.GetSection(connectionName));
- the named configurationthe gap is the only the common configuration has autocomplete, but the named configuration has no autocomplete
Steps To Reproduce
No response
Exceptions (if any)
No response
.NET Version info
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: