Skip to content

Commit 6c2a5cd

Browse files
kong-apiopsgithub-actions[bot]pmalek
authored
feat(sdk): automated oas update (#131)
* feat(sdk): automated oas update * Bump .speakeasy/gen.yaml based on label * Update provider based on openapi.yaml changes * chore: fix breaking changes in API --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Patryk Małek <[email protected]>
1 parent 7185f20 commit 6c2a5cd

File tree

528 files changed

+16568
-17219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

528 files changed

+16568
-17219
lines changed

.speakeasy/gen.lock

Lines changed: 102 additions & 39 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ generation:
2121
generateNewTests: false
2222
skipResponseBodyAssertions: false
2323
go:
24-
version: 0.7.1
24+
version: 0.8.0
2525
additionalDependencies: {}
2626
allowUnknownFieldsInWeakUnions: false
2727
baseErrorName: SDKBaseError

apiversion.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ func newAPIVersion(rootSDK *SDK, sdkConfig config.SDKConfiguration, hooks *hooks
3232

3333
// CreateAPIVersion - Create API Version
3434
// Creates a version (OpenAPI or AsyncAPI) for an API.
35-
func (s *APIVersion) CreateAPIVersion(ctx context.Context, apiID string, apiVersion components.APIVersion, opts ...operations.Option) (*operations.CreateAPIVersionResponse, error) {
35+
func (s *APIVersion) CreateAPIVersion(ctx context.Context, apiID string, createAPIVersionRequest components.CreateAPIVersionRequest, opts ...operations.Option) (*operations.CreateAPIVersionResponse, error) {
3636
request := operations.CreateAPIVersionRequest{
37-
APIID: apiID,
38-
APIVersion: apiVersion,
37+
APIID: apiID,
38+
CreateAPIVersionRequest: createAPIVersionRequest,
3939
}
4040

4141
o := operations.Options{}
@@ -70,7 +70,7 @@ func (s *APIVersion) CreateAPIVersion(ctx context.Context, apiID string, apiVers
7070
OAuth2Scopes: []string{},
7171
SecuritySource: s.sdkConfiguration.Security,
7272
}
73-
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "APIVersion", "json", `request:"mediaType=application/json"`)
73+
bodyReader, reqContentType, err := utils.SerializeRequestBody(ctx, request, false, false, "CreateAPIVersionRequest", "json", `request:"mediaType=application/json"`)
7474
if err != nil {
7575
return nil, err
7676
}

docs/models/components/acl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
| `Consumer` | [*components.ACLConsumer](../../models/components/aclconsumer.md) | :heavy_minus_sign: | N/A |
99
| `CreatedAt` | **int64* | :heavy_minus_sign: | Unix epoch when the resource was created. |
1010
| `Group` | *string* | :heavy_check_mark: | N/A |
11-
| `ID` | **string* | :heavy_minus_sign: | N/A |
12-
| `Tags` | []*string* | :heavy_minus_sign: | N/A |
11+
| `ID` | **string* | :heavy_minus_sign: | A string representing a UUID (universally unique identifier). |
12+
| `Tags` | []*string* | :heavy_minus_sign: | A set of strings representing tags. |

docs/models/components/aclwithoutparents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
| `Consumer` | [*components.ACLWithoutParentsConsumer](../../models/components/aclwithoutparentsconsumer.md) | :heavy_minus_sign: | N/A |
99
| `CreatedAt` | **int64* | :heavy_minus_sign: | Unix epoch when the resource was created. |
1010
| `Group` | *string* | :heavy_check_mark: | N/A |
11-
| `ID` | **string* | :heavy_minus_sign: | N/A |
12-
| `Tags` | []*string* | :heavy_minus_sign: | N/A |
11+
| `ID` | **string* | :heavy_minus_sign: | A string representing a UUID (universally unique identifier). |
12+
| `Tags` | []*string* | :heavy_minus_sign: | A set of strings representing tags. |

docs/models/components/active.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
8-
| `Concurrency` | **int64* | :heavy_minus_sign: | N/A |
9-
| `Headers` | map[string]*string* | :heavy_minus_sign: | N/A |
10-
| `Healthy` | [*components.Healthy](../../models/components/healthy.md) | :heavy_minus_sign: | N/A |
11-
| `HTTPPath` | **string* | :heavy_minus_sign: | N/A |
12-
| `HTTPSSni` | **string* | :heavy_minus_sign: | N/A |
13-
| `HTTPSVerifyCertificate` | **bool* | :heavy_minus_sign: | N/A |
14-
| `Timeout` | **float64* | :heavy_minus_sign: | N/A |
15-
| `Type` | [*components.UpstreamType](../../models/components/upstreamtype.md) | :heavy_minus_sign: | N/A |
16-
| `Unhealthy` | [*components.Unhealthy](../../models/components/unhealthy.md) | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `Concurrency` | **int64* | :heavy_minus_sign: | N/A |
9+
| `Headers` | map[string][]*string* | :heavy_minus_sign: | A map of header names to arrays of header values. |
10+
| `Healthy` | [*components.Healthy](../../models/components/healthy.md) | :heavy_minus_sign: | N/A |
11+
| `HTTPPath` | **string* | :heavy_minus_sign: | A string representing a URL path, such as /path/to/resource. Must start with a forward slash (/) and must not contain empty segments (i.e., two consecutive forward slashes). |
12+
| `HTTPSSni` | **string* | :heavy_minus_sign: | A string representing an SNI (server name indication) value for TLS. |
13+
| `HTTPSVerifyCertificate` | **bool* | :heavy_minus_sign: | N/A |
14+
| `Timeout` | **float64* | :heavy_minus_sign: | N/A |
15+
| `Type` | [*components.UpstreamType](../../models/components/upstreamtype.md) | :heavy_minus_sign: | N/A |
16+
| `Unhealthy` | [*components.Unhealthy](../../models/components/unhealthy.md) | :heavy_minus_sign: | N/A |

docs/models/components/apiattributefilterparameters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
| Field | Type | Required | Description |
77
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
8-
| `ID` | [*components.UUIDFieldFilter](../../models/components/uuidfieldfilter.md) | :heavy_minus_sign: | Filters on the given UUID field value by exact match. |
9-
| `Key` | [*components.UUIDFieldFilter](../../models/components/uuidfieldfilter.md) | :heavy_minus_sign: | Filters on the given UUID field value by exact match. |
8+
| `ID` | [*components.UUIDFieldFilter](../../models/components/uuidfieldfilter.md) | :heavy_minus_sign: | Filters on the given string field value by exact match inequality. |
9+
| `Key` | [*components.UUIDFieldFilter](../../models/components/uuidfieldfilter.md) | :heavy_minus_sign: | Filters on the given string field value by exact match inequality. |
1010
| `CreatedAt` | [*components.DateTimeFieldFilter](../../models/components/datetimefieldfilter.md) | :heavy_minus_sign: | Filters on the given datetime (RFC-3339) field value. |
1111
| `UpdatedAt` | [*components.DateTimeFieldFilter](../../models/components/datetimefieldfilter.md) | :heavy_minus_sign: | Filters on the given datetime (RFC-3339) field value. |

0 commit comments

Comments
 (0)