Skip to content

Commit 6737586

Browse files
Merge pull request #9221 from aayushchouhan09/stats-api-fix
Fix - updated stats_api for schema validation failure
2 parents b4e2f4d + 1ae22ab commit 6737586

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/api/stats_api.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ module.exports = {
758758
type: 'array',
759759
items: {
760760
type: 'object',
761-
required: ['bucket_name', 'quota_size_precent', 'quota_quantity_percent', 'capacity_precent', 'is_healthy', 'tagging', 'bucket_used_bytes'],
761+
required: ['bucket_name', 'quota_size_precent', 'quota_quantity_percent', 'capacity_precent', 'is_healthy', 'tagging', 'bucket_used_bytes', 'object_count', 'quota_max_objects', 'quota_max_bytes'],
762762
properties: {
763763
bucket_name: {
764764
type: 'string'
@@ -778,6 +778,15 @@ module.exports = {
778778
bucket_used_bytes: {
779779
type: 'number'
780780
},
781+
object_count: {
782+
type: 'number'
783+
},
784+
quota_max_objects: {
785+
type: 'number'
786+
},
787+
quota_max_bytes: {
788+
type: 'number'
789+
},
781790
tagging: {
782791
$ref: 'common_api#/definitions/tagging',
783792
},

0 commit comments

Comments
 (0)