Skip to content

Commit ef7d226

Browse files
authored
update swagger gen readme (#783)
1 parent d49a3f0 commit ef7d226

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,12 @@ dotnet restore
123123
dotnet test
124124
```
125125

126-
# Generating the Client Code
126+
# Update the API model
127127

128128
## Prerequisites
129129

130130
You'll need a Linux machine with Docker.
131131

132-
The generated code works on all platforms supported by .NET or .NET Core.
133-
134132
Check out the generator project into some other directory
135133
(henceforth `$GEN_DIR`).
136134

@@ -139,12 +137,12 @@ cd $GEN_DIR/..
139137
git clone https://github.com/kubernetes-client/gen
140138
```
141139

142-
## Generating code
140+
## Generating new swagger.json
143141

144142
```bash
145143
# Where REPO_DIR points to the root of the csharp repository
146-
cd ${REPO_DIR}/csharp/src/KubernetesClient
147-
${GEN_DIR}/openapi/csharp.sh generated ../csharp.settings
144+
cd
145+
${GEN_DIR}/openapi/csharp.sh ${REPO_DIR}/src/KubernetesClient ${REPO_DIR}/csharp.settings
148146
```
149147

150148
# Version Compatibility

0 commit comments

Comments
 (0)