Skip to content
Draft
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
2 changes: 2 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ utfx = { version = "0.1" }
uuid = { version = "1.18", features = ["v4"] }
# dsc-lib, dsc-lib-jsonschema
url = { version = "2.5" }
# dsc-lib
# dsc-lib, dsc-lib-jsonschema
urlencoding = { version = "2.1" }
# dsc-lib
which = { version = "8.0" }
Expand Down
1 change: 1 addition & 0 deletions lib/dsc-lib-jsonschema/.clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
doc-valid-idents = ["IntelliSense", ".."]
2 changes: 2 additions & 0 deletions lib/dsc-lib-jsonschema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ edition = "2024"
doctest = false # Disable doc tests by default for compilation speed

[dependencies]
jsonschema = { workspace = true }
regex = { workspace = true }
rust-i18n = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tracing = { workspace = true }
url = { workspace = true }
urlencoding = { workspace = true }

[dev-dependencies]
# Helps review complex comparisons, like schemas
Expand Down
53 changes: 53 additions & 0 deletions lib/dsc-lib-jsonschema/locales/en-us.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,56 @@ invalid item: %{invalid_item}

transforming schema: %{transforming_schema}
"""

[vscode.keywords.allow_comments]
factory_error_invalid_type = "The 'allowComments' VS Code keyword must be a boolean value."

[vscode.keywords.allow_trailing_commas]
factory_error_invalid_type = "The 'allowTrailingCommas' VS Code keyword must be a boolean value."

[vscode.keywords.completion_detail]
factory_error_invalid_type = "The 'completionDetail' VS Code keyword must be a string value."

[vscode.keywords.default_snippets]
factory_error_suffix = "The 'defaultSnippets' VS Code keyword must be an array of objects. Every object must be a valid snippet definition."
factory_error_not_array = "Non-array value is invalid."
factory_error_invalid_item = "Invalid definition for an object in the array."
factory_error_non_object_item = "Array containing non-object items is invalid."

[vscode.keywords.deprecation_message]
factory_error_invalid_type = "The 'deprecationMessage' VS Code keyword must be a string value."

[vscode.keywords.do_not_suggest]
factory_error_invalid_type = "The 'doNotSuggest' VS Code keyword must be a boolean value."

[vscode.keywords.enum_descriptions]
factory_error_suffix = "The 'enumDescriptions' VS Code keyword must be an array of string values. The 'enumDescriptions' keyword should have the same number of items as the 'enum' keyword."
factory_error_not_array = "Non-array value is invalid."
factory_error_non_string_item = "Array containing non-string items is invalid."

[vscode.keywords.enum_details]
factory_error_suffix = "The 'enumDetails' VS Code keyword must be an array of string values. The 'enumDetails' keyword should have the same number of items as the 'enum' keyword."
factory_error_not_array = "Non-array value is invalid."
factory_error_non_string_item = "Array containing non-string items is invalid."

[vscode.keywords.enum_sort_texts]
factory_error_suffix = "The 'enumSortTexts' VS Code keyword must be an array of string values. The 'enumSortTexts' keyword should have the same number of items as the 'enum' keyword."
factory_error_not_array = "Non-array value is invalid."
factory_error_non_string_item = "Array containing non-string items is invalid."

[vscode.keywords.error_message]
factory_error_invalid_type = "The 'errorMessage' VS Code keyword must be a string value."

[vscode.keywords.markdown_description]
factory_error_invalid_type = "The 'markdownDescription' VS Code keyword must be a string value."

[vscode.keywords.markdown_enum_descriptions]
factory_error_suffix = "The 'markdownEnumDescriptions' VS Code keyword must be an array of string values. The 'markdownEnumDescriptions' keyword should have the same number of items as the 'enum' keyword."
factory_error_not_array = "Non-array value is invalid."
factory_error_non_string_item = "Array containing non-string items is invalid."

[vscode.keywords.pattern_error_message]
factory_error_invalid_type = "The 'allowTrailingCommas' VS Code keyword must be a string value."

[vscode.keywords.suggest_sort_text]
factory_error_invalid_type = "The 'allowTrailingCommas' VS Code keyword must be a string value."
Loading
Loading