From ef7d226ab0e3ba75a7419e255d24fe5390fd3b76 Mon Sep 17 00:00:00 2001 From: Boshi Lian Date: Fri, 25 Feb 2022 13:31:24 -0800 Subject: [PATCH] update swagger gen readme (#783) --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c33e3e6..a226513 100644 --- a/README.md +++ b/README.md @@ -123,14 +123,12 @@ dotnet restore dotnet test ``` -# Generating the Client Code +# Update the API model ## Prerequisites You'll need a Linux machine with Docker. -The generated code works on all platforms supported by .NET or .NET Core. - Check out the generator project into some other directory (henceforth `$GEN_DIR`). @@ -139,12 +137,12 @@ cd $GEN_DIR/.. git clone https://github.com/kubernetes-client/gen ``` -## Generating code +## Generating new swagger.json ```bash # Where REPO_DIR points to the root of the csharp repository -cd ${REPO_DIR}/csharp/src/KubernetesClient -${GEN_DIR}/openapi/csharp.sh generated ../csharp.settings +cd +${GEN_DIR}/openapi/csharp.sh ${REPO_DIR}/src/KubernetesClient ${REPO_DIR}/csharp.settings ``` # Version Compatibility