diff --git a/api/docs.go b/api/docs.go index 063505483..97a0f411a 100644 --- a/api/docs.go +++ b/api/docs.go @@ -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" }, diff --git a/api/openapi.json b/api/openapi.json index 6df6f958e..706043619 100644 --- a/api/openapi.json +++ b/api/openapi.json @@ -72,7 +72,7 @@ }, "api.CreateUploadRequest": { "properties": { - "chunkSize": { + "chunk_size": { "description": "Size of the chunk", "type": "integer" }, @@ -86,7 +86,7 @@ } }, "required": [ - "chunkSize", + "chunk_size", "sha256", "size" ], diff --git a/pkg/api/pulp.go b/pkg/api/pulp.go index d32941e3d..f18974cf3 100644 --- a/pkg/api/pulp.go +++ b/pkg/api/pulp.go @@ -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 {