forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix copyCurentStructure(MapXContentParser) (elastic#76357)
This stops `MapXContentParser` from throwing an `UnsupportedOperationException` when passed as an argument to `XContentBuilder#copyCurrentStructure`. This is mostly useful in tests where `Map` is a convenient way to talk about structured configuration but the production APIs need the map to be embedded into a larger blob of `XContent`. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- Loading branch information
1 parent
72ba4cd
commit b86d526
Showing
2 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters