Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pvormste committed Jan 13, 2025
1 parent 1ccf637 commit 9f4752d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apidef/oas/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -1596,8 +1596,12 @@ func (t *TrafficLogs) ExtractTo(api *apidef.APIDefinition) {

// GlobalRequestSizeLimit holds configuration about the global limits for request sizes.
type GlobalRequestSizeLimit struct {
Enabled bool `bson:"enabled" json:"enabled"`
Value int64 `bson:"value" json:"value"`
// Enabled activates the Request Size Limit.
// Tyk classic API definition: `version_data.versions..global_size_limit_disabled`.
Enabled bool `bson:"enabled" json:"enabled"`
// Value contains the value of the request size limit.
// Tyk classic API definition: `version_data.versions..global_size_limit`.
Value int64 `bson:"value" json:"value"`
}

// Fill fills *GlobalRequestSizeLimit from apidef.APIDefinition.
Expand Down

0 comments on commit 9f4752d

Please sign in to comment.