Add classifier settings

This commit is contained in:
Eike Kettner
2020-08-28 22:17:49 +02:00
parent 53fdb100ab
commit 8c4f2e702b
17 changed files with 649 additions and 56 deletions

View File

@ -3643,12 +3643,14 @@ components:
description: DateTime
type: integer
format: date-time
CollectiveSettings:
description: |
Settings for a collective.
required:
- language
- integrationEnabled
- classifier
properties:
language:
type: string
@ -3658,6 +3660,31 @@ components:
description: |
Whether the collective has the integration endpoint
enabled.
classifier:
$ref: "#/components/schemas/ClassifierSetting"
ClassifierSetting:
description: |
Settings for learning a document classifier.
required:
- enabled
- schedule
- itemCount
properties:
enabled:
type: boolean
category:
type: string
itemCount:
type: integer
format: int32
description: |
The max. number of items to learn from. The newest items
are considered.
schedule:
type: string
format: calevent
SourceList:
description: |
A list of sources.