Skip to content

Commit

Permalink
Merge pull request #1648 from json-api-dotnet/openapi-various
Browse files Browse the repository at this point in the history
Various enhancements in OpenAPI support
  • Loading branch information
bkoelman authored Nov 29, 2024
2 parents 68cad58 + d10d51b commit db1be78
Show file tree
Hide file tree
Showing 249 changed files with 5,725 additions and 1,495 deletions.
4 changes: 2 additions & 2 deletions docs/usage/openapi-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,13 @@ Our [example project](https://github.com/json-api-dotnet/JsonApiDotNetCore/tree/
which seems to work. If you're an MSBuild expert, please help out!

```xml
<Target Name="RemoveKiotaGeneratedCode" BeforeTargets="BeforeCompile;CoreCompile" Condition="$(DesignTimeBuild) != true And $(BuildingProject) == true">
<Target Name="ExcludeKiotaGeneratedCode" BeforeTargets="BeforeCompile;CoreCompile" Condition="$(DesignTimeBuild) != true And $(BuildingProject) == true">
<ItemGroup>
<Compile Remove="**\GeneratedCode\**\*.cs" />
</ItemGroup>
</Target>

<Target Name="KiotaRunTool" BeforeTargets="BeforeCompile;CoreCompile" AfterTargets="RemoveKiotaGeneratedCode"
<Target Name="KiotaRunTool" BeforeTargets="BeforeCompile;CoreCompile" AfterTargets="ExcludeKiotaGeneratedCode"
Condition="$(DesignTimeBuild) != true And $(BuildingProject) == true">
<Exec
Command="dotnet kiota generate --language CSharp --class-name ExampleApiClient --namespace-name OpenApiKiotaClientExample.GeneratedCode --output ./GeneratedCode --backing-store --exclude-backward-compatible --clean-output --clear-cache --log-level Error --openapi ../JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json" />
Expand Down
Loading

0 comments on commit db1be78

Please sign in to comment.