Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 496bb40

Browse files
committedMar 13, 2025
fix(internal): handle 1.1.1.1 as a property name (#3996)
1 parent 5002151 commit 496bb40

File tree

4 files changed

+38
-38
lines changed

4 files changed

+38
-38
lines changed
 

‎.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1571
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f643f830e321157e158f4cca58bce144a213c84171aa8a238ba498f46cbf7d6f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-32d5eeeba4f07494a47c7eab0bd0a7e6fb9c381cf57af399ffc2fdb3b7380278.yml

‎cloudforce_one/scanresult.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ func (r *ScanResultService) List(ctx context.Context, query ScanResultListParams
5151
}
5252

5353
type ScanResultListResponse struct {
54-
Number1_1_1_1 []ScanResultListResponse1_1_1_1 `json:"1.1.1.1,required"`
55-
JSON scanResultListResponseJSON `json:"-"`
54+
OneOneOneOne []ScanResultListResponse1_1_1_1 `json:"1.1.1.1,required"`
55+
JSON scanResultListResponseJSON `json:"-"`
5656
}
5757

5858
// scanResultListResponseJSON contains the JSON metadata for the struct
5959
// [ScanResultListResponse]
6060
type scanResultListResponseJSON struct {
61-
Number1_1_1_1 apijson.Field
62-
raw string
63-
ExtraFields map[string]apijson.Field
61+
OneOneOneOne apijson.Field
62+
raw string
63+
ExtraFields map[string]apijson.Field
6464
}
6565

6666
func (r *ScanResultListResponse) UnmarshalJSON(data []byte) (err error) {

‎radar/attacklayer3summary.go

+15-15
Original file line numberDiff line numberDiff line change
@@ -393,26 +393,26 @@ func (r attackLayer3SummaryDurationResponseMetaConfidenceInfoAnnotationJSON) Raw
393393
}
394394

395395
type AttackLayer3SummaryDurationResponseSummary0 struct {
396-
OneHourToThreeHours string `json:"_1_HOUR_TO_3_HOURS,required"`
397-
TenMinsToTwentyMinds string `json:"_10_MINS_TO_20_MINS,required"`
398-
TwentyMindsToFortyMinds string `json:"_20_MINS_TO_40_MINS,required"`
399-
FortyMinsToOneHour string `json:"_40_MINS_TO_1_HOUR,required"`
400-
Over3Hours string `json:"OVER_3_HOURS,required"`
401-
Under10Mins string `json:"UNDER_10_MINS,required"`
402-
JSON attackLayer3SummaryDurationResponseSummary0JSON `json:"-"`
396+
OneHourToThreeHours string `json:"_1_HOUR_TO_3_HOURS,required"`
397+
TenMinsToTwentyMinds string `json:"_10_MINS_TO_20_MINS,required"`
398+
TwentyMinsToFortyMinds string `json:"_20_MINS_TO_40_MINS,required"`
399+
FortyMinsToOneHour string `json:"_40_MINS_TO_1_HOUR,required"`
400+
Over3Hours string `json:"OVER_3_HOURS,required"`
401+
Under10Mins string `json:"UNDER_10_MINS,required"`
402+
JSON attackLayer3SummaryDurationResponseSummary0JSON `json:"-"`
403403
}
404404

405405
// attackLayer3SummaryDurationResponseSummary0JSON contains the JSON metadata for
406406
// the struct [AttackLayer3SummaryDurationResponseSummary0]
407407
type attackLayer3SummaryDurationResponseSummary0JSON struct {
408-
OneHourToThreeHours apijson.Field
409-
TenMinsToTwentyMinds apijson.Field
410-
TwentyMindsToFortyMinds apijson.Field
411-
FortyMinsToOneHour apijson.Field
412-
Over3Hours apijson.Field
413-
Under10Mins apijson.Field
414-
raw string
415-
ExtraFields map[string]apijson.Field
408+
OneHourToThreeHours apijson.Field
409+
TenMinsToTwentyMinds apijson.Field
410+
TwentyMinsToFortyMinds apijson.Field
411+
FortyMinsToOneHour apijson.Field
412+
Over3Hours apijson.Field
413+
Under10Mins apijson.Field
414+
raw string
415+
ExtraFields map[string]apijson.Field
416416
}
417417

418418
func (r *AttackLayer3SummaryDurationResponseSummary0) UnmarshalJSON(data []byte) (err error) {

‎radar/attacklayer3timeseriesgroup.go

+17-17
Original file line numberDiff line numberDiff line change
@@ -203,28 +203,28 @@ func (r attackLayer3TimeseriesGroupDurationResponseJSON) RawJSON() string {
203203
}
204204

205205
type AttackLayer3TimeseriesGroupDurationResponseSerie0 struct {
206-
OneHourToThreeHours []string `json:"_1_HOUR_TO_3_HOURS,required"`
207-
TenMinsToTwentyMinds []string `json:"_10_MINS_TO_20_MINS,required"`
208-
TwentyMindsToFortyMinds []string `json:"_20_MINS_TO_40_MINS,required"`
209-
FortyMinsToOneHour []string `json:"_40_MINS_TO_1_HOUR,required"`
210-
Over3Hours []string `json:"OVER_3_HOURS,required"`
211-
Timestamps []string `json:"timestamps,required"`
212-
Under10Mins []string `json:"UNDER_10_MINS,required"`
213-
JSON attackLayer3TimeseriesGroupDurationResponseSerie0JSON `json:"-"`
206+
OneHourToThreeHours []string `json:"_1_HOUR_TO_3_HOURS,required"`
207+
TenMinsToTwentyMinds []string `json:"_10_MINS_TO_20_MINS,required"`
208+
TwentyMinsToFortyMinds []string `json:"_20_MINS_TO_40_MINS,required"`
209+
FortyMinsToOneHour []string `json:"_40_MINS_TO_1_HOUR,required"`
210+
Over3Hours []string `json:"OVER_3_HOURS,required"`
211+
Timestamps []string `json:"timestamps,required"`
212+
Under10Mins []string `json:"UNDER_10_MINS,required"`
213+
JSON attackLayer3TimeseriesGroupDurationResponseSerie0JSON `json:"-"`
214214
}
215215

216216
// attackLayer3TimeseriesGroupDurationResponseSerie0JSON contains the JSON metadata
217217
// for the struct [AttackLayer3TimeseriesGroupDurationResponseSerie0]
218218
type attackLayer3TimeseriesGroupDurationResponseSerie0JSON struct {
219-
OneHourToThreeHours apijson.Field
220-
TenMinsToTwentyMinds apijson.Field
221-
TwentyMindsToFortyMinds apijson.Field
222-
FortyMinsToOneHour apijson.Field
223-
Over3Hours apijson.Field
224-
Timestamps apijson.Field
225-
Under10Mins apijson.Field
226-
raw string
227-
ExtraFields map[string]apijson.Field
219+
OneHourToThreeHours apijson.Field
220+
TenMinsToTwentyMinds apijson.Field
221+
TwentyMinsToFortyMinds apijson.Field
222+
FortyMinsToOneHour apijson.Field
223+
Over3Hours apijson.Field
224+
Timestamps apijson.Field
225+
Under10Mins apijson.Field
226+
raw string
227+
ExtraFields map[string]apijson.Field
228228
}
229229

230230
func (r *AttackLayer3TimeseriesGroupDurationResponseSerie0) UnmarshalJSON(data []byte) (err error) {

0 commit comments

Comments
 (0)
Please sign in to comment.