* ✨ 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
41 lines
899 B
JSON
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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|