forked from bterlson/openai-in-typespec
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CONTRIBUTING guide, fix Add-Customizations.ps1 script (#4)
- Loading branch information
1 parent
d01aefa
commit 6604f76
Showing
5 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# CONTRIBUTING | ||
|
||
## How to run code generation | ||
|
||
1. Run the following command to install the necessary tools: | ||
`npm install` | ||
1. Regenerate the OpenAPI spec by running the following command: | ||
`npx tsp compile .\openai-in-typespec\main.tsp --emit @typespec/openapi3` | ||
1. Regenerate the library by running the following command: | ||
`npx tsp compile .\openai-in-typespec\main.tsp --emit @azure-tools/typespec-csharp --option @azure-tools/typespec-csharp.emitter-output-dir=.\openai-in-typespec\.dotnet` | ||
1. Run the following script: | ||
`.\openai-in-typespec\.dotnet\scripts\Update-ClientModel.ps1` | ||
1. Run the following script: | ||
`.\openai-in-typespec\.dotnet\scripts\ConvertTo-Internal.ps1` | ||
1. Run the following script: | ||
`.\openai-in-typespec\.dotnet\scripts\Add-Customizations.ps1` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters