Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -8078,13 +8078,12 @@
},
"title": {
"type": "string",
"description": "The title of the template.",
"minLength": 1,
"description": "The title of the template. Required when publishing.",
"maxLength": 255
},
"data": {
"type": "object",
"description": "The body of the template as a Prosemirror document."
"description": "The body of the template as a Prosemirror document. Required when publishing."
},
"icon": {
"type": "string",
Expand All @@ -8101,12 +8100,13 @@
"type": "string",
"format": "uuid",
"description": "Identifier for the collection to which the template belongs."
},
"publish": {
"type": "boolean",
"default": true,
"description": "Whether the template is available to other members. Set to false to create a draft that is only visible to its creator."
}
},
"required": [
"title",
"data"
]
}
}
}
}
Expand Down Expand Up @@ -8338,6 +8338,10 @@
"format": "uuid",
"description": "Identifier for the collection to which the template belongs. Set to null for a workspace-wide template.",
"nullable": true
},
"publish": {
"type": "boolean",
"description": "Set to true to publish a draft template so it becomes available to other members."
}
},
"required": [
Expand Down
15 changes: 9 additions & 6 deletions spec3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5603,12 +5603,11 @@ paths:
description: Optionally provide a specific UUID for the template.
title:
type: string
description: The title of the template.
minLength: 1
description: The title of the template. Required when publishing.
maxLength: 255
data:
type: object
description: The body of the template as a Prosemirror document.
description: The body of the template as a Prosemirror document. Required when publishing.
icon:
type: string
description: An emoji to use as the template icon.
Expand All @@ -5622,9 +5621,10 @@ paths:
type: string
format: uuid
description: Identifier for the collection to which the template belongs.
required:
- title
- data
publish:
type: boolean
default: true
description: Whether the template is available to other members. Set to false to create a draft that is only visible to its creator.
responses:
"200":
description: OK
Expand Down Expand Up @@ -5775,6 +5775,9 @@ paths:
format: uuid
description: Identifier for the collection to which the template belongs. Set to null for a workspace-wide template.
nullable: true
publish:
type: boolean
description: Set to true to publish a draft template so it becomes available to other members.
required:
- id
responses:
Expand Down
Loading