mirror of
https://github.com/unclshura/BlazorOpenApi.git
synced 2025-12-21 09:51:53 +00:00
Enhance documentation and improve example data handling
This commit is contained in:
parent
f4f9a5c88d
commit
c61bf2f374
@ -18,7 +18,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="README.md" Pack="true" PackagePath="\"/>
|
<None Include="../README.md" Pack="true" PackagePath="\"/>
|
||||||
|
<None Include="../docs/**" Pack="true" PackagePath="\docs\"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@ -54,7 +54,9 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
exampleData[parameter.Name] = GenerateExampleFromSchema(parameter.Schema);
|
var ex = GenerateExampleFromSchema(parameter.Schema);
|
||||||
|
if (ex != null)
|
||||||
|
exampleData[parameter.Name] = ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@ internal class TableOfContentsTree : ITableOfContentsTree
|
|||||||
private readonly Dictionary<string, TocTreeNode> _nodes = new();
|
private readonly Dictionary<string, TocTreeNode> _nodes = new();
|
||||||
private readonly List<string> _order = new();
|
private readonly List<string> _order = new();
|
||||||
|
|
||||||
public event EventHandler Changed;
|
public event EventHandler? Changed;
|
||||||
|
|
||||||
public void Clear()
|
public void Clear()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -9,9 +9,9 @@ It is a pure Blazor implementation.
|
|||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||
[Light mode](docs/light.png)
|
{ width=250px }
|
||||||
[Dark mode](docs/dark.png)
|
{ width=250px }
|
||||||
[Examples generation](docs/example-data.png)]
|
]{ width=250px }
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user