Skip to content

Commit

Permalink
Fixes more linting noise
Browse files Browse the repository at this point in the history
  • Loading branch information
akolson committed Jan 12, 2024
1 parent 30fe07f commit aea321e
Showing 1 changed file with 37 additions and 16 deletions.
53 changes: 37 additions & 16 deletions le_utils/constants/recommendations_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,26 @@
"language": {
"type": "string",
"description": "Language code from "
"https://github.com/learningequality/le-utils/blob/main/le_utils/resources/languagelookup"
".json",
"https://github.com/learningequality/le-utils/blob/main/le_utils/resources/languagelookup"
".json",
"pattern": "^[a-z]{2,3}(?:-[a-zA-Z]+)?$",
},
"topic": {
"type": "object",
"description": "A topic in the tree structure",
"additionalProperties": False,
"properties": {
"id": {"type": "string", "description": "The ID of the topic content node on Studio"},
"id": {
"type": "string",
"description": "The ID of the topic content node on Studio",
},
"title": {"type": "string", "description": "The title of the topic"},
"description": {"type": "string", "description": "The description of the topic"},
"description": {
"type": "string",
"description": "The description of the topic",
},
"language": {"$ref": "#/definitions/language"},
"ancestors": {"$ref": "#/definitions/ancestors"}
"ancestors": {"$ref": "#/definitions/ancestors"},
},
"required": ["id", "title", "description"],
},
Expand All @@ -46,39 +52,54 @@
"description": "The key textual metadata and data for a content resource",
"additionalProperties": False,
"properties": {
"id": {"type": "string", "description": "The ID of the content resource"},
"title": {"type": "string", "description": "The title of the content resource"},
"description": {"type": "string", "description": "The description of the content resource"},
"id": {
"type": "string",
"description": "The ID of the content resource",
},
"title": {
"type": "string",
"description": "The title of the content resource",
},
"description": {
"type": "string",
"description": "The description of the content resource",
},
"text": {
"type": "string",
"description": "The cleaned up text extracted from the content resource (in markdown or plaintext "
"format)"
"format)",
},
"language": {"$ref": "#/definitions/language"},
},
"required": ["id", "title", "description", "text"]
"required": ["id", "title", "description", "text"],
},
},
"properties": {
"topics": {
"type": "array",
"description": "A list of topics to embed",
"items": {"$ref": "#/definitions/topic"}
"items": {"$ref": "#/definitions/topic"},
},
"resources": {
"type": "array",
"description": "A list of content resources to embed",
"items": {"$ref": "#/definitions/resource"}
"items": {"$ref": "#/definitions/resource"},
},
"metadata": {
"type": "object",
"description": "The metadata of the channel for logging purposes",
"properties": {
"channel_id": {"type": "string", "description": "The ID of the channel"},
"channel_title": {"type": "string", "description": "The title of the channel"}
"channel_id": {
"type": "string",
"description": "The ID of the channel",
},
"channel_title": {
"type": "string",
"description": "The title of the channel",
},
},
"required": ["channel_id", "channel_title"]
"required": ["channel_id", "channel_title"],
},
},
"required": ["topics", "resources"]
"required": ["topics", "resources"],
}

0 comments on commit aea321e

Please sign in to comment.