Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 18, 2024
1 parent 4af16b0 commit 2529ae2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions committestresult.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (r *CommitTestResultService) List(ctx context.Context, projectVersionID str
}

type CommitTestResultListResponse struct {
Meta CommitTestResultListResponseMeta `json:"_meta,required"`
Meta CommitTestResultListResponse_Meta `json:"_meta,required"`
Items []CommitTestResultListResponseItem `json:"items,required"`
JSON commitTestResultListResponseJSON `json:"-"`
}
Expand All @@ -74,7 +74,7 @@ func (r commitTestResultListResponseJSON) RawJSON() string {
return r.raw
}

type CommitTestResultListResponseMeta struct {
type CommitTestResultListResponse_Meta struct {
// The current page.
Page int64 `json:"page,required"`
// The number of items per page.
Expand All @@ -87,7 +87,7 @@ type CommitTestResultListResponseMeta struct {
}

// commitTestResultListResponseMetaJSON contains the JSON metadata for the struct
// [CommitTestResultListResponseMeta]
// [CommitTestResultListResponse_Meta]
type commitTestResultListResponseMetaJSON struct {
Page apijson.Field
PerPage apijson.Field
Expand All @@ -97,7 +97,7 @@ type commitTestResultListResponseMetaJSON struct {
ExtraFields map[string]apijson.Field
}

func (r *CommitTestResultListResponseMeta) UnmarshalJSON(data []byte) (err error) {
func (r *CommitTestResultListResponse_Meta) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

Expand Down
8 changes: 4 additions & 4 deletions inferencepipelinetestresult.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (r *InferencePipelineTestResultService) List(ctx context.Context, inference
}

type InferencePipelineTestResultListResponse struct {
Meta InferencePipelineTestResultListResponseMeta `json:"_meta,required"`
Meta InferencePipelineTestResultListResponse_Meta `json:"_meta,required"`
Items []InferencePipelineTestResultListResponseItem `json:"items,required"`
JSON inferencePipelineTestResultListResponseJSON `json:"-"`
}
Expand All @@ -74,7 +74,7 @@ func (r inferencePipelineTestResultListResponseJSON) RawJSON() string {
return r.raw
}

type InferencePipelineTestResultListResponseMeta struct {
type InferencePipelineTestResultListResponse_Meta struct {
// The current page.
Page int64 `json:"page,required"`
// The number of items per page.
Expand All @@ -87,7 +87,7 @@ type InferencePipelineTestResultListResponseMeta struct {
}

// inferencePipelineTestResultListResponseMetaJSON contains the JSON metadata for
// the struct [InferencePipelineTestResultListResponseMeta]
// the struct [InferencePipelineTestResultListResponse_Meta]
type inferencePipelineTestResultListResponseMetaJSON struct {
Page apijson.Field
PerPage apijson.Field
Expand All @@ -97,7 +97,7 @@ type inferencePipelineTestResultListResponseMetaJSON struct {
ExtraFields map[string]apijson.Field
}

func (r *InferencePipelineTestResultListResponseMeta) UnmarshalJSON(data []byte) (err error) {
func (r *InferencePipelineTestResultListResponse_Meta) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

Expand Down
8 changes: 4 additions & 4 deletions project.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (r projectNewResponseGitRepoJSON) RawJSON() string {
}

type ProjectListResponse struct {
Meta ProjectListResponseMeta `json:"_meta,required"`
Meta ProjectListResponse_Meta `json:"_meta,required"`
Items []ProjectListResponseItem `json:"items,required"`
JSON projectListResponseJSON `json:"-"`
}
Expand All @@ -243,7 +243,7 @@ func (r projectListResponseJSON) RawJSON() string {
return r.raw
}

type ProjectListResponseMeta struct {
type ProjectListResponse_Meta struct {
// The current page.
Page int64 `json:"page,required"`
// The number of items per page.
Expand All @@ -256,7 +256,7 @@ type ProjectListResponseMeta struct {
}

// projectListResponseMetaJSON contains the JSON metadata for the struct
// [ProjectListResponseMeta]
// [ProjectListResponse_Meta]
type projectListResponseMetaJSON struct {
Page apijson.Field
PerPage apijson.Field
Expand All @@ -266,7 +266,7 @@ type projectListResponseMetaJSON struct {
ExtraFields map[string]apijson.Field
}

func (r *ProjectListResponseMeta) UnmarshalJSON(data []byte) (err error) {
func (r *ProjectListResponse_Meta) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

Expand Down
8 changes: 4 additions & 4 deletions projectcommit.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (r *ProjectCommitService) List(ctx context.Context, projectID string, query
}

type ProjectCommitListResponse struct {
Meta ProjectCommitListResponseMeta `json:"_meta,required"`
Meta ProjectCommitListResponse_Meta `json:"_meta,required"`
Items []ProjectCommitListResponseItem `json:"items,required"`
JSON projectCommitListResponseJSON `json:"-"`
}
Expand All @@ -71,7 +71,7 @@ func (r projectCommitListResponseJSON) RawJSON() string {
return r.raw
}

type ProjectCommitListResponseMeta struct {
type ProjectCommitListResponse_Meta struct {
// The current page.
Page int64 `json:"page,required"`
// The number of items per page.
Expand All @@ -84,7 +84,7 @@ type ProjectCommitListResponseMeta struct {
}

// projectCommitListResponseMetaJSON contains the JSON metadata for the struct
// [ProjectCommitListResponseMeta]
// [ProjectCommitListResponse_Meta]
type projectCommitListResponseMetaJSON struct {
Page apijson.Field
PerPage apijson.Field
Expand All @@ -94,7 +94,7 @@ type projectCommitListResponseMetaJSON struct {
ExtraFields map[string]apijson.Field
}

func (r *ProjectCommitListResponseMeta) UnmarshalJSON(data []byte) (err error) {
func (r *ProjectCommitListResponse_Meta) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

Expand Down
8 changes: 4 additions & 4 deletions projectinferencepipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (r ProjectInferencePipelineNewResponseStatus) IsKnown() bool {
}

type ProjectInferencePipelineListResponse struct {
Meta ProjectInferencePipelineListResponseMeta `json:"_meta,required"`
Meta ProjectInferencePipelineListResponse_Meta `json:"_meta,required"`
Items []ProjectInferencePipelineListResponseItem `json:"items,required"`
JSON projectInferencePipelineListResponseJSON `json:"-"`
}
Expand All @@ -187,7 +187,7 @@ func (r projectInferencePipelineListResponseJSON) RawJSON() string {
return r.raw
}

type ProjectInferencePipelineListResponseMeta struct {
type ProjectInferencePipelineListResponse_Meta struct {
// The current page.
Page int64 `json:"page,required"`
// The number of items per page.
Expand All @@ -200,7 +200,7 @@ type ProjectInferencePipelineListResponseMeta struct {
}

// projectInferencePipelineListResponseMetaJSON contains the JSON metadata for the
// struct [ProjectInferencePipelineListResponseMeta]
// struct [ProjectInferencePipelineListResponse_Meta]
type projectInferencePipelineListResponseMetaJSON struct {
Page apijson.Field
PerPage apijson.Field
Expand All @@ -210,7 +210,7 @@ type projectInferencePipelineListResponseMetaJSON struct {
ExtraFields map[string]apijson.Field
}

func (r *ProjectInferencePipelineListResponseMeta) UnmarshalJSON(data []byte) (err error) {
func (r *ProjectInferencePipelineListResponse_Meta) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

Expand Down

0 comments on commit 2529ae2

Please sign in to comment.