Added include/exclude filter specification to validator schema
This commit is contained in:
@@ -24,14 +24,30 @@ namespace clanguml::config {
|
|||||||
const std::string schema_str = R"(
|
const std::string schema_str = R"(
|
||||||
types:
|
types:
|
||||||
map_t<K;V>: { $K: V }
|
map_t<K;V>: { $K: V }
|
||||||
comment_parser_t: !variant [plain, clang]
|
comment_parser_t: !variant
|
||||||
diagram_type_t: !variant [class, sequence, include, package]
|
- plain
|
||||||
generate_method_arguments_t: !variant [full, abbreviated, none]
|
- clang
|
||||||
|
diagram_type_t: !variant
|
||||||
|
- class
|
||||||
|
- sequence
|
||||||
|
- include
|
||||||
|
- package
|
||||||
|
generate_method_arguments_t: !variant
|
||||||
|
- full
|
||||||
|
- abbreviated
|
||||||
|
- none
|
||||||
generate_links_t:
|
generate_links_t:
|
||||||
link: string
|
link: string
|
||||||
tooltip: string
|
tooltip: string
|
||||||
git_t: map_t<string;string>
|
git_t: map_t<string;string>
|
||||||
layout_hint_key: !variant [up, left, right, down, row, column, together]
|
layout_hint_key: !variant
|
||||||
|
- up
|
||||||
|
- left
|
||||||
|
- right
|
||||||
|
- down
|
||||||
|
- row
|
||||||
|
- column
|
||||||
|
- together
|
||||||
layout_hint_value: [string, [string]]
|
layout_hint_value: [string, [string]]
|
||||||
layout_hint_t: [map_t<layout_hint_key;layout_hint_value>]
|
layout_hint_t: [map_t<layout_hint_key;layout_hint_value>]
|
||||||
layout_t: map_t<string;layout_hint_t>
|
layout_t: map_t<string;layout_hint_t>
|
||||||
@@ -40,8 +56,65 @@ types:
|
|||||||
regex_t:
|
regex_t:
|
||||||
r: string
|
r: string
|
||||||
regex_or_string_t: [string, regex_t]
|
regex_or_string_t: [string, regex_t]
|
||||||
namespaces_filter_t: regex_or_string_t
|
namespaces_filter_t:
|
||||||
elements_filter_t: regex_or_string_t
|
namespaces: [regex_or_string_t]
|
||||||
|
elements_filter_t:
|
||||||
|
elements: [regex_or_string_t]
|
||||||
|
element_types_filter_t: !variant
|
||||||
|
- class
|
||||||
|
- enum
|
||||||
|
- concept
|
||||||
|
relationship_filter_t: !variant
|
||||||
|
- extension
|
||||||
|
- inheritance
|
||||||
|
- composition
|
||||||
|
- aggregation
|
||||||
|
- containment
|
||||||
|
- ownership
|
||||||
|
- association
|
||||||
|
- instantiation
|
||||||
|
- friendship
|
||||||
|
- alias
|
||||||
|
- dependency
|
||||||
|
- constraint
|
||||||
|
- none
|
||||||
|
access_filter_t: !variant
|
||||||
|
- public
|
||||||
|
- protected
|
||||||
|
- private
|
||||||
|
method_type_filter_t: !variant
|
||||||
|
- constructor
|
||||||
|
- destructor
|
||||||
|
- assignment
|
||||||
|
- operator
|
||||||
|
- defaulted
|
||||||
|
- deleted
|
||||||
|
- static
|
||||||
|
callee_type_filter_t: !variant
|
||||||
|
- constructor
|
||||||
|
- assignment
|
||||||
|
- operator
|
||||||
|
- defaulted
|
||||||
|
- static
|
||||||
|
- method
|
||||||
|
- function
|
||||||
|
- function_template
|
||||||
|
- lambda
|
||||||
|
filter_t:
|
||||||
|
namespaces: !optional [regex_or_string_t]
|
||||||
|
elements: !optional [regex_or_string_t]
|
||||||
|
element_types: !optional [element_types_filter_t]
|
||||||
|
relationships: !optional [relationship_filter_t]
|
||||||
|
access: !optional [access_filter_t]
|
||||||
|
subclasses: !optional [regex_or_string_t]
|
||||||
|
parents: !optional [regex_or_string_t]
|
||||||
|
specializations: !optional [regex_or_string_t]
|
||||||
|
dependants: !optional [regex_or_string_t]
|
||||||
|
dependencies: !optional [regex_or_string_t]
|
||||||
|
context: !optional [regex_or_string_t]
|
||||||
|
paths: !optional [string]
|
||||||
|
method_types: !optional [method_type_filter_t]
|
||||||
|
callee_types: !optional [callee_type_filter_t]
|
||||||
function_location_t:
|
function_location_t:
|
||||||
function: string
|
function: string
|
||||||
marker_location_t:
|
marker_location_t:
|
||||||
@@ -55,14 +128,13 @@ types:
|
|||||||
# Common options
|
# Common options
|
||||||
#
|
#
|
||||||
__parent_path: !optional string
|
__parent_path: !optional string
|
||||||
base_directory: !optional string
|
|
||||||
comment_parser: !optional comment_parser_t
|
comment_parser: !optional comment_parser_t
|
||||||
debug_mode: !optional bool
|
debug_mode: !optional bool
|
||||||
exclude: !optional map_t<string;any>
|
exclude: !optional filter_t
|
||||||
generate_links: !optional generate_links_t
|
generate_links: !optional generate_links_t
|
||||||
git: !optional git_t
|
git: !optional git_t
|
||||||
glob: !optional [string]
|
glob: !optional [string]
|
||||||
include: !optional map_t<string;any>
|
include: !optional filter_t
|
||||||
plantuml: !optional
|
plantuml: !optional
|
||||||
before: !optional [string]
|
before: !optional [string]
|
||||||
after: !optional [string]
|
after: !optional [string]
|
||||||
@@ -88,14 +160,13 @@ types:
|
|||||||
# Common options
|
# Common options
|
||||||
#
|
#
|
||||||
__parent_path: !optional string
|
__parent_path: !optional string
|
||||||
base_directory: !optional string
|
|
||||||
comment_parser: !optional comment_parser_t
|
comment_parser: !optional comment_parser_t
|
||||||
debug_mode: !optional bool
|
debug_mode: !optional bool
|
||||||
exclude: !optional map_t<string;any>
|
exclude: !optional filter_t
|
||||||
generate_links: !optional generate_links_t
|
generate_links: !optional generate_links_t
|
||||||
git: !optional git_t
|
git: !optional git_t
|
||||||
glob: !optional [string]
|
glob: !optional [string]
|
||||||
include: !optional map_t<string;any>
|
include: !optional filter_t
|
||||||
plantuml: !optional
|
plantuml: !optional
|
||||||
before: !optional [string]
|
before: !optional [string]
|
||||||
after: !optional [string]
|
after: !optional [string]
|
||||||
@@ -117,14 +188,13 @@ types:
|
|||||||
# Common options
|
# Common options
|
||||||
#
|
#
|
||||||
__parent_path: !optional string
|
__parent_path: !optional string
|
||||||
base_directory: !optional string
|
|
||||||
comment_parser: !optional comment_parser_t
|
comment_parser: !optional comment_parser_t
|
||||||
debug_mode: !optional bool
|
debug_mode: !optional bool
|
||||||
exclude: !optional map_t<string;any>
|
exclude: !optional filter_t
|
||||||
generate_links: !optional generate_links_t
|
generate_links: !optional generate_links_t
|
||||||
git: !optional git_t
|
git: !optional git_t
|
||||||
glob: !optional [string]
|
glob: !optional [string]
|
||||||
include: !optional map_t<string;any>
|
include: !optional filter_t
|
||||||
plantuml: !optional
|
plantuml: !optional
|
||||||
before: !optional [string]
|
before: !optional [string]
|
||||||
after: !optional [string]
|
after: !optional [string]
|
||||||
@@ -143,14 +213,13 @@ types:
|
|||||||
# Common options
|
# Common options
|
||||||
#
|
#
|
||||||
__parent_path: !optional string
|
__parent_path: !optional string
|
||||||
base_directory: !optional string
|
|
||||||
comment_parser: !optional comment_parser_t
|
comment_parser: !optional comment_parser_t
|
||||||
debug_mode: !optional bool
|
debug_mode: !optional bool
|
||||||
exclude: !optional map_t<string;any>
|
exclude: !optional filter_t
|
||||||
generate_links: !optional generate_links_t
|
generate_links: !optional generate_links_t
|
||||||
git: !optional git_t
|
git: !optional git_t
|
||||||
glob: !optional [string]
|
glob: !optional [string]
|
||||||
include: !optional map_t<string;any>
|
include: !optional filter_t
|
||||||
plantuml: !optional
|
plantuml: !optional
|
||||||
before: !optional [string]
|
before: !optional [string]
|
||||||
after: !optional [string]
|
after: !optional [string]
|
||||||
@@ -186,14 +255,13 @@ root:
|
|||||||
# Common options
|
# Common options
|
||||||
#
|
#
|
||||||
__parent_path: !optional string
|
__parent_path: !optional string
|
||||||
base_directory: !optional string
|
|
||||||
comment_parser: !optional comment_parser_t
|
comment_parser: !optional comment_parser_t
|
||||||
debug_mode: !optional bool
|
debug_mode: !optional bool
|
||||||
exclude: !optional map_t<string;any>
|
exclude: !optional filter_t
|
||||||
generate_links: !optional generate_links_t
|
generate_links: !optional generate_links_t
|
||||||
git: !optional git_t
|
git: !optional git_t
|
||||||
glob: !optional [string]
|
glob: !optional [string]
|
||||||
include: !optional map_t<string;any>
|
include: !optional filter_t
|
||||||
plantuml: !optional
|
plantuml: !optional
|
||||||
before: !optional [string]
|
before: !optional [string]
|
||||||
after: !optional [string]
|
after: !optional [string]
|
||||||
|
|||||||
Reference in New Issue
Block a user