Skip to content

Commit

Permalink
asyncapi#197 Produce AsyncAPI documents at build time
Browse files Browse the repository at this point in the history
  • Loading branch information
Senn Geerts authored and Senn Geerts committed Jul 7, 2024
1 parent a379a3e commit 02ffbcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,7 @@
<None Include="../../assets/logo.png" Pack="true" PackagePath="/" />
<None Include="build/*" Pack="true" PackagePath="/build" />
<None Include="$(OutputPath)/net6.0/*" Pack="true" PackagePath="/tools/net6.0" />
</ItemGroup>

<!--ItemGroup>
<Compile Include="../AsyncAPI.Saunter.Generator.Cli/Commands/**/*.cs" />
<Compile Include="../AsyncAPI.Saunter.Generator.Cli/Internal/**/*.cs" />
<Compile Include="../AsyncAPI.Saunter.Generator.Cli/SwashbuckleImport/**/*.cs" />
<Compile Include="../AsyncAPI.Saunter.Generator.Cli/*.cs" />
</ItemGroup>-->

<ItemGroup>
<Folder Include="tools\" />
<None Include="$(OutputPath)/net8.0/*" Pack="true" PackagePath="/tools/net8.0" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/AsyncAPI.Saunter.Generator.Build/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ If the ```AsyncAPI.Saunter.Generator.Build``` Nuget package is referenced, the d
- AsyncAPIDocumentOutputPath: Output path for the AsyncAPI spec files, relative to the csproj location. (default is the csproj root path: ./)
- AsyncAPIDocumentNames: The AsyncAPI documents to generate. (default: generate all known documents)
- AsyncAPIDocumentFilename: Template of the AsyncAPI spec files (default: "{document}_asyncapi.{extension}")
- AsyncAPIDocumentEnvVars: Environment variable(s) to set during generation of the AsyncAPI spec files (default: none, Example: "ASPNETCORE_ENVIRONMENT=Development")
None of these properties are mandatory. By only referencing the [AsyncAPI.Saunter.Generator.Build](https://www.nuget.org/packages/AsyncAPI.Saunter.Generator.Build) Nuget package a json AsyncAPI spec file will be generated for all AsyncAPI documents.
- AsyncAPIDocumentEnvVars: Environment variable(s) to set during generation of the AsyncAPI spec files (default: none, Example: "ASPNETCORE_ENVIRONMENT=Development")
None of these properties are mandatory. Only referencing the [AsyncAPI.Saunter.Generator.Build](https://www.nuget.org/packages/AsyncAPI.Saunter.Generator.Build) Nuget package will generate a json AsyncAPI spec file for all AsyncAPI documents.

0 comments on commit 02ffbcd

Please sign in to comment.