Skip to content
Merged
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: 0 additions & 2 deletions src/schema-validation.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,8 @@
"partial-eslint-plugins.json",
"phrase.json",
"phraseapp.json",
"plagiarize-0.0.json",
"plagiarize-me-0.0.json",
"plagiarize-me.json",
"plagiarize.json",
"pocketmine-plugin.json",
"pre-commit-config.json",
"prettierrc-1.8.2.json",
Expand Down
28 changes: 24 additions & 4 deletions src/schemas/json/plagiarize-0.0.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/plagiarize-0.0",
"description": "plagiarize.yaml configuration schema",
"id": "https://json.schemastore.org/plagiarize-0.0",
"properties": {
"repo": {
"required": ["url"],
Expand All @@ -22,7 +22,17 @@
"type": "object",
"description": "Strings to find in target project and be replaced with plagiarized project's values",
"additionalProperties": {
"type": ["string", "integer", "boolean"]
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "boolean"
}
]
},
"required": ["project"],
"properties": {
Expand All @@ -35,7 +45,17 @@
"type": "object",
"description": "Variables available to be used for finding and replacing by variable name. For example `$var_name: hello` would replace string '$var_name' with 'hello' in target project",
"additionalProperties": {
"type": ["string", "integer", "boolean"]
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "boolean"
}
]
}
}
},
Expand Down
28 changes: 24 additions & 4 deletions src/schemas/json/plagiarize.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/plagiarize",
"description": "plagiarize.yaml configuration schema",
"id": "https://json.schemastore.org/plagiarize",
"properties": {
"repo": {
"required": ["url"],
Expand All @@ -22,7 +22,17 @@
"type": "object",
"description": "Strings to find in target project and be replaced with plagiarized project's values",
"additionalProperties": {
"type": ["string", "integer", "boolean"]
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "boolean"
}
]
},
"required": ["project"],
"properties": {
Expand All @@ -35,7 +45,17 @@
"type": "object",
"description": "Variables available to be used for finding and replacing by variable name. For example `$var_name: hello` would replace string '$var_name' with 'hello' in target project",
"additionalProperties": {
"type": ["string", "integer", "boolean"]
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "boolean"
}
]
}
}
},
Expand Down
Loading