knowledgeMetadataFilterInput top-level property

ObjectSchema knowledgeMetadataFilterInput
final

The frontmatter filters a host tool accepts, as JSON, with the meaning of KnowledgeMetadataFilter: optional tags, require_tags, types, statuses and path_prefixes lists, and title_contains and description_contains strings. Convert a parsed value with knowledgeMetadataFilterFromInput.

Implementation

final knowledgeMetadataFilterInput = Ack.object({
  'tags': Ack.list(_value()).unique().optional(),
  'require_tags': Ack.list(_value()).unique().optional(),
  'types': Ack.list(_value()).unique().optional(),
  'statuses': Ack.list(_value()).unique().optional(),
  'path_prefixes': Ack.list(_value()).unique().optional(),
  'title_contains': _value().optional(),
  'description_contains': _value().optional(),
});