Skip to content

Commit

Permalink
feat: add support for filter_content_type
Browse files Browse the repository at this point in the history
* to allow filtering of referenced stories
  • Loading branch information
pvaneveld committed Jun 14, 2024
1 parent 7c470f2 commit 1a974ab
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,11 @@ components:
items:
type: string
description: 'Array of file type names: ["images", "videos", "audios", "texts"]'
filter_content_type:
type: array
items:
type: string
description: 'An array of content types that can be selected in a option or options field where source is internal_stories: e.g. ["post", "faq_item"]'
folder_slug:
type: string
description: 'Filter on selectable stories path; Effects editor only if source=internal_stories; In case you have a multi-language folder structure you can add the ''{0}'' placeholder and the path will be adapted dynamically. Examples: "{0}/categories/", {0}/{1}/categories/'
Expand Down
5 changes: 3 additions & 2 deletions sbmgmt/main.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions schemas/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,11 @@ FieldInput:
items:
type: string
description: 'Array of file type names: ["images", "videos", "audios", "texts"]'
filter_content_type:
type: array
items:
type: string
description: 'An array of content types that can be selected in a option or options field where source is internal_stories: e.g. ["post", "faq_item"]'
folder_slug:
type: string
description: 'Filter on selectable stories path; Effects editor only if source=internal_stories; In case you have a multi-language folder structure you can add the ''{0}'' placeholder and the path will be adapted dynamically. Examples: "{0}/categories/", {0}/{1}/categories/'
Expand Down

0 comments on commit 1a974ab

Please sign in to comment.