Skip to content

feat: add config to disable additional properties #499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@
"type": "boolean",
"default": true,
"description": "Automatically pull available YAML schemas from JSON Schema Store"
},
"yaml.disableAdditionalProperties": {
"type": "boolean",
"default": false,
"description": "Globally set additionalProperties to false to all objects. So if its true, no extra properties are allowed inside yaml."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should "to false to all objects" be "to false for all objects"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, make sense

}
}
},
Expand Down