This defines the schema for .NET Core's runtimeconfig.json file.
Using Visual Studio, you can get auto-completion if you import the schema in your .JSON file like this:
{
"$schema": "https://gist.githubusercontent.com/natemcmaster/0bdee16450f8ec1823f2c11af880ceeb/raw/runtimeconfig.template.schema.json"
}
Use these links based on your file type:
<myapp>.runtimeconfig.json
: https://gist.githubusercontent.com/natemcmaster/0bdee16450f8ec1823f2c11af880ceeb/raw/runtimeconfig.schema.jsonruntimeconfig.template.json
(same as the other, but without the top-levelruntimeOptions
property: https://gist.githubusercontent.com/natemcmaster/0bdee16450f8ec1823f2c11af880ceeb/raw/runtimeconfig.template.schema.json
Hey - due to
additionalProperties: false
, the$schema
property is technically disallowed (as reported by JetBrains IDEs)!See this issue for a long debate about that. 😂
Please could you add
$schema
as an optional property?