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
@ -17,8 +17,9 @@
|
||||
<PackageReference Include="System.Text.Json" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="README.md" Pack="true" PackagePath="\"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="../README.md" Pack="true" PackagePath="\"/>
|
||||
<None Include="../docs/**" Pack="true" PackagePath="\docs\"/>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@ -54,7 +54,9 @@
|
||||
}
|
||||
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 List<string> _order = new();
|
||||
|
||||
public event EventHandler Changed;
|
||||
public event EventHandler? Changed;
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
|
||||
@ -9,9 +9,9 @@ It is a pure Blazor implementation.
|
||||
|
||||
## Screenshots
|
||||
|
||||
[Light mode](docs/light.png)
|
||||
[Dark mode](docs/dark.png)
|
||||
[Examples generation](docs/example-data.png)]
|
||||
{ width=250px }
|
||||
{ width=250px }
|
||||
]{ width=250px }
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user