Skip to content

Commit

Permalink
docs: Updated README.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Jul 13, 2024
1 parent fd3e9e0 commit f3f3195
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Inspired by [NSwag](https://github.com/RicoSuter/NSwag) ❤️.
- Supports Enums for System.Text.Json

# 🚀Quick start🚀
## CLI(Recommended)
## CLI (Recommended)
You can use the CLI to generate the code.
```bash
dotnet tool install --global openapigenerator.cli --prerelease
Expand Down Expand Up @@ -65,6 +65,9 @@ dotnet add package OpenApiGenerator
![rider_show_generated_code.png](assets/rider_show_generated_code.png)

# Trimming support
## CLI
CLI generates Trimming/NativeAOT compatible code by default.

## Source generator
Since there are two source generators involved, we will have to create a second project so that the generator for the JsonSerializerContext will “see” our models
- Create new project for your models. And disable methods/constructors generation:
Expand Down

0 comments on commit f3f3195

Please sign in to comment.