mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
spec: schema docs for new ACP dashboard subpage routes
This commit is contained in:
@@ -486,7 +486,11 @@ describe('API', async () => {
|
||||
if (obj.allOf) {
|
||||
obj = { properties: flattenAllOf(obj.allOf) };
|
||||
} else {
|
||||
required = required.concat(obj.required ? obj.required : Object.keys(obj.properties));
|
||||
try {
|
||||
required = required.concat(obj.required ? obj.required : Object.keys(obj.properties));
|
||||
} catch (e) {
|
||||
assert.fail(`Syntax error re: allOf, perhaps you allOf'd an array? (path: ${method} ${path}, context: ${context})`);
|
||||
}
|
||||
}
|
||||
|
||||
return { ...memo, ...obj.properties };
|
||||
|
||||
Reference in New Issue
Block a user