You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing ASP.Net Core applications, you typically have an appsettings.json file which is used to collect any sort of runtime configuration. This file is very open in terms of schema, and typically different areas of concern in the application will have relatively well-structured config underneath a particular 'parent' key, which serves as a namespace. Take for example the Serilog logging library. It looks for configuration under the "Serilog" key in this file, at which point everything else follows a schema. It would be nice somehow to map this schema to the key particularly.
The text was updated successfully, but these errors were encountered:
That's hard to do because right now the appsetting.json file is a grab-bag, where any and all runtime settings (which can change based on which components/libraries you've added to your application) can live. There's a discussion about adding schema for the 'default' microsoft-provided properties at this issue though: dotnet/aspnetcore#2867.
While I could make a schema like that^ I think the larger question is how to do that and 'merge' the schemas if Microsoft ever did ship their official schema.
in VSCode if two (or more) schemas are contributed to the same file, we merge them (its an OR of all of them)
but also single schema with all known library-schemas could be a solution. Why not suggesting the AspNetCore team that defines that schema to also accept to include associations for other libraries?
I didn't realize that multiple schemas were merged together! That covers most of the use case as far as I'm concerned then. Thank you for walking me through this.
While writing ASP.Net Core applications, you typically have an
appsettings.json
file which is used to collect any sort of runtime configuration. This file is very open in terms of schema, and typically different areas of concern in the application will have relatively well-structured config underneath a particular 'parent' key, which serves as a namespace. Take for example the Serilog logging library. It looks for configuration under the "Serilog" key in this file, at which point everything else follows a schema. It would be nice somehow to map this schema to the key particularly.The text was updated successfully, but these errors were encountered: