Skip to content

Commit

Permalink
Disallow additional properties in snippets (cursorless-dev#808)
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey authored Jun 30, 2022
1 parent 2a68c81 commit 9f844af
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions schemas/cursorless-snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
},
"description": "Cursorless scopes in which this snippet is active. Allows, for example, to have different snippets to define a function if you're in a class or at global scope."
}
}
},
"additionalProperties": false
},
"body": {
"type": "array",
Expand All @@ -43,6 +44,7 @@
"description": "Scope-specific overrides for the variables defined in the snippet"
}
},
"additionalProperties": false,
"required": ["body"]
}
},
Expand All @@ -61,7 +63,8 @@
},
"description": "Try to expand target to this scope type when inserting this snippet before/after a target without scope type specified. If multiple scope types are specified try them each in order until one of them matches."
}
}
},
"additionalProperties": false
},
"$defs": {
"scopeType": {
Expand Down Expand Up @@ -130,7 +133,8 @@
"description": "Format text inserted into this variable using the given formatter",
"enum": ["camelCase", "pascalCase", "snakeCase", "upperSnakeCase"]
}
}
},
"additionalProperties": false
}
}
}
Expand Down

0 comments on commit 9f844af

Please sign in to comment.