From 55fe5d4165cc09962282ed928e388be4f40d02e0 Mon Sep 17 00:00:00 2001 From: Samson Akol Date: Fri, 2 Feb 2024 02:08:59 +0300 Subject: [PATCH] clarifies the level property --- js/EmbedTopicsRequest.js | 4 ++-- le_utils/constants/embed_topics_request.py | 4 ++-- spec/schema-embed_topics_request.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js/EmbedTopicsRequest.js b/js/EmbedTopicsRequest.js index 5556619..0ba9c52 100644 --- a/js/EmbedTopicsRequest.js +++ b/js/EmbedTopicsRequest.js @@ -29,7 +29,7 @@ export const SCHEMA = { }, "level": { "type": "integer", - "description": "The level of the ancestor, where the parent is 1 and the root is the highest level" + "description": "The level of the ancestor, where the root is 0 and the parent is the highest level" }, "ancestor": { "type": "object", @@ -61,7 +61,7 @@ export const SCHEMA = { }, "ancestors": { "type": "array", - "description": "The ancestors of the topic, in order, from the parent to the root", + "description": "The ancestors of the topic. Please see 'level' in the ancestor schema for more information", "items": { "$ref": "#/definitions/ancestor" } diff --git a/le_utils/constants/embed_topics_request.py b/le_utils/constants/embed_topics_request.py index fb92359..7158785 100644 --- a/le_utils/constants/embed_topics_request.py +++ b/le_utils/constants/embed_topics_request.py @@ -32,7 +32,7 @@ }, "level": { "type": "integer", - "description": "The level of the ancestor, where the parent is 1 and the root is the highest level", + "description": "The level of the ancestor, where the root is 0 and the parent is the highest level", }, "ancestor": { "type": "object", @@ -49,7 +49,7 @@ }, "ancestors": { "type": "array", - "description": "The ancestors of the topic, in order, from the parent to the root", + "description": "The ancestors of the topic. Please see 'level' in the ancestor schema for more information", "items": {"$ref": "#/definitions/ancestor"}, }, "topic": { diff --git a/spec/schema-embed_topics_request.json b/spec/schema-embed_topics_request.json index ed9f91a..8b259db 100644 --- a/spec/schema-embed_topics_request.json +++ b/spec/schema-embed_topics_request.json @@ -24,7 +24,7 @@ }, "level": { "type": "integer", - "description": "The level of the ancestor, where the parent is 1 and the root is the highest level" + "description": "The level of the ancestor, where the root is 0 and the parent is the highest level" }, "ancestor": { "type": "object", @@ -56,7 +56,7 @@ }, "ancestors": { "type": "array", - "description": "The ancestors of the topic, in order, from the parent to the root", + "description": "The ancestors of the topic. Please see 'level' in the ancestor schema for more information", "items": { "$ref": "#/definitions/ancestor" }