From 4b79bee4584f1bf69479baa05ea965f4c953be46 Mon Sep 17 00:00:00 2001 From: Sputnik Date: Wed, 27 May 2020 18:51:55 +1000 Subject: [PATCH 1/2] Replace batch schema with the official definition Schema from: https://github.com/git-lfs/git-lfs/blob/master/tq/schemas/http-batch-request-schema.json Fixes kzwang/node-git-lfs#5 --- schema/http-v1-batch-request-schema.json | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/schema/http-v1-batch-request-schema.json b/schema/http-v1-batch-request-schema.json index 65ec249..aa2c661 100644 --- a/schema/http-v1-batch-request-schema.json +++ b/schema/http-v1-batch-request-schema.json @@ -1,8 +1,14 @@ { "$schema": "http://json-schema.org/draft-04/schema", - "title": "Git LFS HTTPS Batch API v1 Request", + "title": "Git LFS HTTPS Batch API Request", "type": "object", "properties": { + "transfers": { + "type": "array", + "items": { + "type": "string" + } + }, "operation": { "type": "string" }, @@ -15,7 +21,11 @@ "type": "string" }, "size": { - "type": "number" + "type": "number", + "minimum": 0 + }, + "authenticated": { + "type": "boolean" } }, "required": ["oid", "size"], @@ -23,6 +33,5 @@ } } }, - "required": ["objects", "operation"], - "additionalProperties": false -} \ No newline at end of file + "required": ["objects", "operation"] +} From 585445d3a5c2a20cc67cb300a854b7f27d8c5fa3 Mon Sep 17 00:00:00 2001 From: Sputnik Date: Sat, 9 Apr 2022 18:20:45 +1000 Subject: [PATCH 2/2] Bump aws-sdk to improve credential sourcing --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3ea6e34..86006f6 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "repository": "kzwang/node-git-lfs", "dependencies": { - "aws-sdk": "^2.2.10", + "aws-sdk": "^2.1111.0", "btoa": "^1.1.2", "co": "^4.6.0", "co-body": "^4.0.0",