Skip to content

Commit

Permalink
feat(api): manual updates (#3686)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Nov 28, 2024
1 parent 2e49239 commit de419a4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pagerules/pagerule.go
Original file line number Diff line number Diff line change
Expand Up @@ -1570,12 +1570,12 @@ func (r PageRuleStatus) IsKnown() bool {
return false
}

// A request condition target.
// URL target.
type Target struct {
// String constraint.
Constraint TargetConstraint `json:"constraint,required"`
Constraint TargetConstraint `json:"constraint"`
// A target based on the URL of the request.
Target TargetTarget `json:"target,required"`
Target TargetTarget `json:"target"`
JSON targetJSON `json:"-"`
}

Expand Down Expand Up @@ -1656,12 +1656,12 @@ func (r TargetTarget) IsKnown() bool {
return false
}

// A request condition target.
// URL target.
type TargetParam struct {
// String constraint.
Constraint param.Field[TargetConstraintParam] `json:"constraint,required"`
Constraint param.Field[TargetConstraintParam] `json:"constraint"`
// A target based on the URL of the request.
Target param.Field[TargetTarget] `json:"target,required"`
Target param.Field[TargetTarget] `json:"target"`
}

func (r TargetParam) MarshalJSON() (data []byte, err error) {
Expand Down

0 comments on commit de419a4

Please sign in to comment.