Skip to content

Commit

Permalink
Changes prior to tags support from generator repo
Browse files Browse the repository at this point in the history
  • Loading branch information
venkat-iblox committed Jan 26, 2024
1 parent 9e413f8 commit 34d71ca
Show file tree
Hide file tree
Showing 121 changed files with 3,411 additions and 1,206 deletions.
2 changes: 1 addition & 1 deletion dns_config/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.1
7.1.0
10 changes: 5 additions & 5 deletions dns_config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,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 `sw.ContextServerIndex` of type `int`.
For using other server than the one defined on index 0 set context value `dns_config.ContextServerIndex` of type `int`.

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

### Templated Server URL

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

```golang
ctx := context.WithValue(context.Background(), dns_config.ContextServerVariables, map[string]string{
Expand All @@ -60,7 +60,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 `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps.
Similar rules for overriding default operation server index and variables applies by using `dns_config.ContextOperationServerIndices` and `dns_config.ContextOperationServerVariables` context maps.

```golang
ctx := context.WithValue(context.Background(), dns_config.ContextOperationServerIndices, map[string]int{
Expand Down Expand Up @@ -269,8 +269,8 @@ Example
```golang
auth := context.WithValue(
context.Background(),
sw.ContextAPIKeys,
map[string]sw.APIKey{
dns_config.ContextAPIKeys,
map[string]dns_config.APIKey{
"Authorization": {Key: "API_KEY_STRING"},
},
)
Expand Down
52 changes: 24 additions & 28 deletions dns_config/api_acl.go

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

Loading

0 comments on commit 34d71ca

Please sign in to comment.