Foysal Ahamed 076c2f9872
Add getSubjects endpoint to ozone for full view of subjects (#3651)
*  Add getSubjects endpoint to ozone for full view of subjects

* 📝 Better lexicon description

* 📝 Add changeset

*  Add subject to subject view

*  Update snapshot

* :rotating_lights: Fix lint issue

*  Make subject required in subjectView

* 🐛 Add subject check before attempting to run queries

*  Keed the order of subjects from the request in the responding array

*  Use a union for profile field

* 🐛 Remove minLength and address profile value

* 📝 Bring back minLength
2025-03-27 10:50:44 -04:00

41 lines
899 B
JSON

{
"lexicon": 1,
"id": "tools.ozone.moderation.getSubjects",
"defs": {
"main": {
"type": "query",
"description": "Get details about subjects.",
"parameters": {
"type": "params",
"required": ["subjects"],
"properties": {
"subjects": {
"type": "array",
"maxLength": 100,
"minLength": 1,
"items": {
"type": "string"
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["subjects"],
"properties": {
"subjects": {
"type": "array",
"items": {
"type": "ref",
"ref": "tools.ozone.moderation.defs#subjectView"
}
}
}
}
}
}
}
}