HLRC: Drop extra level from user parser (#34932)
It had support for an object between `created` and the root that we don't return in 7.0+.
This commit is contained in:
parent
544c220942
commit
277f49b9ca
|
@ -62,7 +62,6 @@ public final class PutUserResponse {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
PARSER.declareBoolean(constructorArg(), new ParseField("created"));
|
PARSER.declareBoolean(constructorArg(), new ParseField("created"));
|
||||||
PARSER.declareObject((a,b) -> {}, (parser, context) -> null, new ParseField("user")); // ignore the user field!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static PutUserResponse fromXContent(XContentParser parser) throws IOException {
|
public static PutUserResponse fromXContent(XContentParser parser) throws IOException {
|
||||||
|
|
Loading…
Reference in New Issue