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

support unknown keys for object type in @kbn/schema-config #39448

Merged

Conversation

mshustov
Copy link
Contributor

Summary

We need to support validation for a case when not all keys are known in advance. We should validate known keys and don't strip unknown.
https://github.com/restrry/kibana/blob/f1cb9466cdeb514693744e3960b1d508858bf34d/x-pack/legacy/plugins/security/server/routes/api/v1/authenticate.js#L81-L90

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@mshustov mshustov added review Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes v7.3.0 labels Jun 21, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@mshustov mshustov requested a review from a team June 21, 2019 16:10
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@mshustov
Copy link
Contributor Author

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@mshustov
Copy link
Contributor Author

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@mshustov mshustov merged commit 99c36d8 into elastic:master Jun 24, 2019
@mshustov mshustov deleted the issue-33775-schema-object-unknown-keys branch June 24, 2019 14:22
mshustov added a commit to mshustov/kibana that referenced this pull request Jun 24, 2019
…9448)

* support unknown keys for object type in @kbn/schema-config

* add test for children objects

* update snapshot test

* allowUnknowns as TypeOptions
mshustov added a commit that referenced this pull request Jun 24, 2019
…39514)

* support unknown keys for object type in @kbn/schema-config

* add test for children objects

* update snapshot test

* allowUnknowns as TypeOptions
@mshustov mshustov removed the review label Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants