Skip to content

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

Merged
mshustov merged 5 commits intoelastic:masterfrom
mshustov:issue-33775-schema-object-unknown-keys
Jun 24, 2019
Merged

support unknown keys for object type in @kbn/schema-config#39448
mshustov merged 5 commits intoelastic:masterfrom
mshustov:issue-33775-schema-object-unknown-keys

Conversation

@mshustov
Copy link
Copy Markdown
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 Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes v7.3.0 labels Jun 21, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-platform

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

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@mshustov
Copy link
Copy Markdown
Contributor Author

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@mshustov
Copy link
Copy Markdown
Contributor Author

retest

@elasticmachine
Copy link
Copy Markdown
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 Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// v7.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants