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
These json schemas should be generated from C# code to minimize maintenance cost.
(with tool like NJsonSchema or JsonSchema.Net.Generation)
and should be tested by CI automatically.
Additional context
There is unofficial schema definition for docfx.json exists.
and schema for toc.yml is discussed at #7736 (expanded and dropdown options are added for toc.json recently)
The text was updated successfully, but these errors were encountered:
There's schema-generation work at dotnet/aspire#3309; but that looks specific to Microsoft.Extensions.Configuration.Binder and wouldn't recognize the JSON-specific attributes that DocFX uses in its configuration classes.
Is your feature request related to a problem? Please describe.
When editing
docfx.json
andtoc.yml
.It'll be helpful intellisense are supported by default. (It require json schema definition)
Describe the solution you'd like
Add json schema definition files to docfx repository's following directory.
https://github.com/dotnet/docfx/tree/main/schemas
├ docfx.json
└ toc.json
These json schemas should be generated from C# code to minimize maintenance cost.
(with tool like NJsonSchema or JsonSchema.Net.Generation)
and should be tested by CI automatically.
Additional context
There is unofficial schema definition for
docfx.json
exists.and schema for
toc.yml
is discussed at #7736 (expanded
anddropdown
options are added fortoc.json
recently)The text was updated successfully, but these errors were encountered: