Skip to content

Commit 3823991

Browse files
feat(api): api update
1 parent 7863496 commit 3823991

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1739
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b703804ec51b092cdb8f680f7afccdd9623219207156ccdc5f31b1a3599178ef.yml
3-
openapi_spec_hash: 2e5f51ee368408895edaa6eb63921ebf
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-860d686b9ba8ed4d6c414bc93efbe53f1ac1b561676e2a3c2e3d0f9365ac51f7.yml
3+
openapi_spec_hash: 8231937451a371976d0602420017941a
44
config_hash: 7e270b3449efce600e3469937a344c2d

internal/services/workers_route/model.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type WorkersRouteModel struct {
1515
ID types.String `tfsdk:"id" json:"id,computed"`
1616
ZoneID types.String `tfsdk:"zone_id" path:"zone_id,required"`
1717
Pattern types.String `tfsdk:"pattern" json:"pattern,required"`
18-
Script types.String `tfsdk:"script" json:"script,required"`
18+
Script types.String `tfsdk:"script" json:"script,optional"`
1919
}
2020

2121
func (m WorkersRouteModel) MarshalJSON() (data []byte, err error) {

internal/services/workers_route/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func ResourceSchema(ctx context.Context) schema.Schema {
3232
},
3333
"script": schema.StringAttribute{
3434
Description: "Name of the script to run if the route matches.",
35-
Required: true,
35+
Optional: true,
3636
},
3737
},
3838
}

0 commit comments

Comments
 (0)