cadl/packages/http-server-csharp
Timothee Guerin 3eed298346
Use reusable state accessor for compiler decorators (#4465)
Idea that could be expanded/exposed to other libraries in the future.

Define clearly how to access a certain state key.

Doing that now as for paging there is a lot of decorators that are added
and that will simplify.
2024-09-17 23:14:01 +00:00
..
src Use reusable state accessor for compiler decorators (#4465) 2024-09-17 23:14:01 +00:00
test Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00
CHANGELOG.md TypeSpec 0.59 - September Release branch (#4386) 2024-09-10 22:45:59 +00:00
LICENSE CSharp Service Emitter (#2904) 2024-07-31 20:55:25 +00:00
README.md CSharp Service Emitter (#2904) 2024-07-31 20:55:25 +00:00
package.json Bump dependencies - Sep 2024 (#4424) 2024-09-13 15:50:22 +00:00
tsconfig.config.json CSharp Service Emitter (#2904) 2024-07-31 20:55:25 +00:00
tsconfig.json CSharp Service Emitter (#2904) 2024-07-31 20:55:25 +00:00
vitest.config.ts Update prettier config to format trailing commas to `all` (Default) (#4457) 2024-09-16 20:20:57 +00:00

README.md

@typespec/http-server-csharp

TypeSpec service code generator for c-sharp

Install

npm install @typespec/http-server-csharp

Emitter

Usage

  1. Via the command line
tsp compile . --emit=@typespec/http-server-csharp
  1. Via the config
emit:
  - "@typespec/http-server-csharp"

Emitter options

skip-format

Type: boolean

Skips formatting of generated C# Types. By default, C# files are formatted using 'dotnet format'.

output-type

Type: "models" | "all"

Chooses which service artifacts to emit. choices include 'models' or 'all' artifacts.