A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/dotnet/aspnetcore/issues/2867 below:

Define a JSON schema for appsettings.json · Issue #2867 · dotnet/aspnetcore · GitHub

As we start to write more config binders for framework components, it becomes increasingly difficult for developers to discover settings that can be set in static config files. Documentation helps, but it would be even better if we could provide intellisense in the editor. Although config can be loaded from JSON, INI, XML, environment vars, and more, our new project templates and many apps use "appsettings.json" as a convention. It would be nice to provide a JSON schema file that includes common aspnetcore settings.

Usage
Users can reference a schema by adding the $schema property to their JSON file.

{
    "$schema": "https://somethingofficial.com/appsettings.schema.json"
    // the rest of the config there
}

Autocomplete
VS Code and VS already provide autocomplete and doc tooltips for JSON schema.

sheryever, SuddenGunter, opirci, xsoheilalizadeh, matthewevans87 and 35 more


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4