-
Notifications
You must be signed in to change notification settings - Fork 715
Configuration Schema generator #1383
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
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f6dc518
WIP - initial implementation
eerhardt 9f93f52
Finished initial Source Generator version.
eerhardt a9b4752
Convert from a source generator to a post-compilation tool.
eerhardt fc89713
Fix descriptions.
eerhardt b05c864
Support TimeSpan and enums correctly.
eerhardt e6d61c1
If there are no properties on an object, skip it.
eerhardt cc5f8ec
Convert to using System.Text.Json.Nodes instead of writing strings.
eerhardt 807180e
Recurse on complex properties.
eerhardt 65c185d
Support default boolean values.
eerhardt 5844f0b
Fix doc comments on properties from base types.
eerhardt 89412fb
Allow for excluded paths.
eerhardt 642f9d6
Compare the output of the generator to the checked in file, fail if t…
eerhardt f736d12
Clean up round 1
eerhardt ee374a6
Final round of clean up
eerhardt cb63174
Initial PR feedback
eerhardt 3ed02d4
Fix build by using DotNetTool exec
eerhardt 4f27f89
Quote the DotNetTool path.
eerhardt e2e185e
Use .rsp file to pass args to ConfigurationSchemaGenerator
eerhardt 54de26d
Address PR feedback
eerhardt 90699ca
Respond to PR feedback.
eerhardt 522cdd7
Normalize line endings
eerhardt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using Aspire.Azure.Storage.Blobs; | ||
| using Aspire; | ||
| using Azure.Storage.Blobs; | ||
|
|
||
| [assembly: ConfigurationSchema("Aspire:Azure:Storage:Blobs", typeof(AzureStorageBlobsSettings))] | ||
| [assembly: ConfigurationSchema("Aspire:Azure:Storage:Blobs:ClientOptions", typeof(BlobClientOptions), exclusionPaths: ["Default"])] | ||
|
|
||
| [assembly: LoggingCategories("Azure", "Azure.Core", "Azure.Identity")] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
|
|
||
| using Aspire.MySqlConnector; | ||
| using Aspire; | ||
|
|
||
| [assembly: ConfigurationSchema("Aspire:MySqlConnector", typeof(MySqlConnectorSettings))] | ||
|
|
||
| [assembly: LoggingCategories( | ||
| "MySqlConnector", | ||
| "MySqlConnector.ConnectionPool", | ||
| "MySqlConnector.MySqlBulkCopy", | ||
| "MySqlConnector.MySqlCommand", | ||
| "MySqlConnector.MySqlConnection", | ||
| "MySqlConnector.MySqlDataSource")] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.