Skip to content

Commit

Permalink
Remove required fields from metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
akolson committed Jan 15, 2024
1 parent 0737764 commit 303dafd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions le_utils/constants/embed_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"language": {
"type": "string",
"description": "Language code from https://github.com/learningequality/le-utils/blob/main/le_utils/resources/languagelookup.json",
"description": "Language code from https://github.com/learningequality/le-utils/blob/main/le_utils"
"/resources/languagelookup.json",
"pattern": "^[a-z]{2,3}(?:-[a-zA-Z]+)?$",
},
"topic": {
Expand Down Expand Up @@ -64,7 +65,8 @@
},
"text": {
"type": "string",
"description": "The cleaned up text extracted from the content resource (in markdown or plaintext format)",
"description": "The cleaned up text extracted from the content resource (in markdown or plaintext "
"format)",
},
"language": {"$ref": "#/definitions/language"},
},
Expand Down

0 comments on commit 303dafd

Please sign in to comment.