Skip to content
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

fix: do not allow additionalProperties #4785

Closed
wants to merge 1 commit into from
Closed

Conversation

sguiheux
Copy link
Collaborator

  1. Description
  2. Related issues
  3. About tests
  4. Mentions

@ovh/cds

@ovh-cds
Copy link
Collaborator

ovh-cds commented Nov 27, 2019

CDS Report cds-package#11487.0 ✘

  • build-package
    • Debian Engine Package ✘
    • Docker Engine Package ✔
    • Package UI ✔

@@ -107,7 +107,7 @@ func toolsYamlSchemaRun(v cli.Values) error {
results := make([]string, len(types))
for i := range types {
r := jsonschema.Reflector{
AllowAdditionalProperties: true,
AllowAdditionalProperties: false,
Copy link
Member

Choose a reason for hiding this comment

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

This was useful to ignore error in yaml when a unknown entry is set. This was set to true to ignore error for custom action where custom names are unknown keys in yaml.

Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to change it ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

to be able to validate a yaml. To avoid that people enter a key that doesn ’t match the schema.
Today I can type foo: bar in a workflow yaml file, and it’s ok

@richardlt
Copy link
Member

Closed because of #4872

@richardlt richardlt closed this Jan 8, 2020
@richardlt richardlt deleted the fixYamlSchema branch January 8, 2020 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants