Skip to content

Commit

Permalink
[codegen] Update to latest API spec
Browse files Browse the repository at this point in the history
  • Loading branch information
swallez committed Mar 9, 2023
1 parent 03f9dab commit 6cbc9fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public final String locale() {

protected void serializeInternal(JsonGenerator generator, JsonpMapper mapper) {

generator.write("type", "{dynamic_type}");
generator.write("type", "{dynamic_property}");
super.serializeInternal(generator, mapper);
if (this.enabled != null) {
generator.writeKey("enabled");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public enum Kind implements JsonEnum {

DoubleRange("double_range"),

DynamicProperty("{dynamic_type}"),
DynamicProperty("{dynamic_property}"),

Alias("alias"),

Expand Down Expand Up @@ -420,17 +420,17 @@ public DoubleRangeProperty doubleRange() {
}

/**
* Is this variant instance of kind {@code {dynamic_type}}?
* Is this variant instance of kind {@code {dynamic_property}}?
*/
public boolean isDynamicProperty() {
return _kind == Kind.DynamicProperty;
}

/**
* Get the {@code {dynamic_type}} variant value.
* Get the {@code {dynamic_property}} variant value.
*
* @throws IllegalStateException
* if the current variant is not of the {@code {dynamic_type}}
* if the current variant is not of the {@code {dynamic_property}}
* kind.
*/
public DynamicProperty dynamicProperty() {
Expand Down Expand Up @@ -1580,7 +1580,7 @@ protected static void setupPropertyDeserializer(ObjectDeserializer<Builder> op)
op.add(Builder::denseVector, DenseVectorProperty._DESERIALIZER, "dense_vector");
op.add(Builder::double_, DoubleNumberProperty._DESERIALIZER, "double");
op.add(Builder::doubleRange, DoubleRangeProperty._DESERIALIZER, "double_range");
op.add(Builder::dynamicProperty, DynamicProperty._DESERIALIZER, "{dynamic_type}");
op.add(Builder::dynamicProperty, DynamicProperty._DESERIALIZER, "{dynamic_property}");
op.add(Builder::alias, FieldAliasProperty._DESERIALIZER, "alias");
op.add(Builder::flattened, FlattenedProperty._DESERIALIZER, "flattened");
op.add(Builder::float_, FloatNumberProperty._DESERIALIZER, "float");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ public static Property doubleRange(Function<DoubleRangeProperty.Builder, ObjectB
}

/**
* Creates a builder for the {@link DynamicProperty {dynamic_type}}
* Creates a builder for the {@link DynamicProperty {dynamic_property}}
* {@code Property} variant.
*/
public static DynamicProperty.Builder dynamicProperty() {
return new DynamicProperty.Builder();
}

/**
* Creates a Property of the {@link DynamicProperty {dynamic_type}}
* Creates a Property of the {@link DynamicProperty {dynamic_property}}
* {@code Property} variant.
*/
public static Property dynamicProperty(Function<DynamicProperty.Builder, ObjectBuilder<DynamicProperty>> fn) {
Expand Down

0 comments on commit 6cbc9fd

Please sign in to comment.