From 50fd738585567a39f6fd0b1db37b899cbae42ba5 Mon Sep 17 00:00:00 2001 From: Michael Beemer Date: Fri, 18 Oct 2024 10:16:50 -0400 Subject: [PATCH] fix: update docs (#300) Signed-off-by: Michael Beemer --- src/OpenFeature.Contrib.Providers.Flipt/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenFeature.Contrib.Providers.Flipt/README.md b/src/OpenFeature.Contrib.Providers.Flipt/README.md index c7f8d116..007a87d6 100644 --- a/src/OpenFeature.Contrib.Providers.Flipt/README.md +++ b/src/OpenFeature.Contrib.Providers.Flipt/README.md @@ -102,7 +102,7 @@ in the `/obj/` folder_ First, download the latest `openapi.yaml` file from the Flipt GitHub repository. This can be done manually or by using a command like `curl` in the `/src/OpenFeature.Contrib.Providers.Flipt/`: -``` +```shell curl https://raw.githubusercontent.com/flipt-io/flipt/refs/heads/main/openapi.yaml -o openapi.yaml ``` @@ -111,7 +111,7 @@ curl https://raw.githubusercontent.com/flipt-io/flipt/refs/heads/main/openapi.ya With the `openapi.yml` file in your working directory, run the following `nswag` command to generate the REST client code. Make sure to correct the command as shown below: -``` +```shell nswag openapi2csclient /className:FliptRestClient /namespace:Flipt.Rest /input:"openapi.yaml" /output:"./Flipt.Rest.Client.cs" /GenerateExceptionClasses:true /OperationGenerationMode:SingleClientFromPathSegments /JsonLibrary:SystemTextJson /GenerateOptionalParameters:true /GenerateDefaultValues:true /GenerateResponseClasses:true /GenerateClientInterfaces:true /GenerateClientClasses:true /GenerateDtoTypes:true /ExceptionClass:FliptRestException /GenerateNativeRecords:true /UseBaseUrl:false /GenerateBaseUrlProperty:false ```