Skip to content

Commit

Permalink
Update openapi chunk_size
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewgdewar committed Dec 20, 2024
1 parent a2d1c0d commit 8544336
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions api/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3597,12 +3597,12 @@ const docTemplate = `{
"api.CreateUploadRequest": {
"type": "object",
"required": [
"chunkSize",
"chunk_size",
"sha256",
"size"
],
"properties": {
"chunkSize": {
"chunk_size": {
"description": "Size of the chunk",
"type": "integer"
},
Expand Down
4 changes: 2 additions & 2 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"api.CreateUploadRequest": {
"properties": {
"chunkSize": {
"chunk_size": {
"description": "Size of the chunk",
"type": "integer"
},
Expand All @@ -86,7 +86,7 @@
}
},
"required": [
"chunkSize",
"chunk_size",
"sha256",
"size"
],
Expand Down
6 changes: 3 additions & 3 deletions pkg/api/pulp.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package api

type CreateUploadRequest struct {
Size int64 `json:"size" validate:"required"` // Size of the upload in bytes
ChunkSize int64 `json:"chunkSize" validate:"required"` // Size of the chunk
Sha256 string `json:"sha256" validate:"required"` // SHA-256 checksum of the file
Size int64 `json:"size" validate:"required"` // Size of the upload in bytes
ChunkSize int64 `json:"chunk_size" validate:"required"` // Size of the chunk
Sha256 string `json:"sha256" validate:"required"` // SHA-256 checksum of the file
}

type PulpUploadChunkRequest struct {
Expand Down

0 comments on commit 8544336

Please sign in to comment.