Skip to content

Commit

Permalink
use 7.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
duoertai committed Mar 26, 2024
1 parent 2430f28 commit 7381b0e
Show file tree
Hide file tree
Showing 82 changed files with 1,048 additions and 1,887 deletions.
1 change: 0 additions & 1 deletion gen/iwfidl/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
api/openapi.yaml
Expand Down
2 changes: 1 addition & 1 deletion gen/iwfidl/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.0
7.0.1
8 changes: 4 additions & 4 deletions gen/iwfidl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ go get golang.org/x/net/context
Put the package under your project folder and add the following in import:

```golang
import iwfidl "github.com/indeedeng/iwf-idl"
import iwfidl "github.com/indeedeng/iwf-id"
```

To use a proxy, set the environment variable `HTTP_PROXY`:
Expand All @@ -36,15 +36,15 @@ Default configuration comes with `Servers` field that contains server objects as

### Select Server Configuration

For using other server than the one defined on index 0 set context value `iwfidl.ContextServerIndex` of type `int`.
For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`.

```golang
ctx := context.WithValue(context.Background(), iwfidl.ContextServerIndex, 1)
```

### Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value `iwfidl.ContextServerVariables` of type `map[string]string`.
Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`.

```golang
ctx := context.WithValue(context.Background(), iwfidl.ContextServerVariables, map[string]string{
Expand All @@ -58,7 +58,7 @@ Note, enum values are always validated and all unused variables are silently ign

Each operation can use different server URL defined using `OperationServers` map in the `Configuration`.
An operation is uniquely identified by `"{classname}Service.{nickname}"` string.
Similar rules for overriding default operation server index and variables applies by using `iwfidl.ContextOperationServerIndices` and `iwfidl.ContextOperationServerVariables` context maps.
Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps.

```golang
ctx := context.WithValue(context.Background(), iwfidl.ContextOperationServerIndices, map[string]int{
Expand Down
549 changes: 268 additions & 281 deletions gen/iwfidl/api_default.go

Large diffs are not rendered by default.

159 changes: 81 additions & 78 deletions gen/iwfidl/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions gen/iwfidl/configuration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7381b0e

Please sign in to comment.