-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Clarify ToXContent contract #16347
Copy link
Copy link
Closed
Labels
:Core/Infra/CoreCore issues without another labelCore issues without another label>enhancementTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamhelp wantedadoptmeadoptme
Description
ElasticsearchException implements ToXContent but it doens't look like it works with XContentBuilder#writeValue because ElasticsearchException doesn't output its start and end object markers. Is this a bug? If so we should probably fix it and add more comments around toXContent's contract and probably make some simple way to test that implementers comply with the contract.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Core/Infra/CoreCore issues without another labelCore issues without another label>enhancementTeam:Core/InfraMeta label for core/infra teamMeta label for core/infra teamhelp wantedadoptmeadoptme
Type
Fields
Give feedbackNo fields configured for issues without a type.