Merge branch 'thenanyu-refactor-doc-dirty-logic'

This commit is contained in:
Tom Moor
2019-07-07 19:20:04 -07:00
5 changed files with 20 additions and 25 deletions

View File

@@ -522,7 +522,6 @@ router.post('documents.create', auth(), async ctx => {
index,
} = ctx.body;
ctx.assertUuid(collectionId, 'collectionId must be an uuid');
ctx.assertPresent(title, 'title is required');
ctx.assertPresent(text, 'text is required');
if (parentDocumentId) {
ctx.assertUuid(parentDocumentId, 'parentDocumentId must be an uuid');

View File

@@ -284,11 +284,7 @@ export default function Api() {
}
required
/>
<Argument
id="title"
description="Title for the document"
required
/>
<Argument id="title" description="Title for the document" />
<Argument
id="text"
description="Content of the document in Markdow"