Skip to content

Commit

Permalink
simplifying generics (#2665)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta authored Jul 1, 2024
1 parent 10ce7ad commit 54a8b37
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 122 deletions.
16 changes: 8 additions & 8 deletions output/openapi/elasticsearch-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -57817,14 +57817,14 @@
"_types.query_dsl:UntypedDecayFunction": {
"allOf": [
{
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseField"
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBase"
},
{
"type": "object"
}
]
},
"_types.query_dsl:DecayFunctionBaseField": {
"_types.query_dsl:DecayFunctionBase": {
"type": "object",
"properties": {
"multi_value_mode": {
Expand All @@ -57844,14 +57844,14 @@
"_types.query_dsl:DateDecayFunction": {
"allOf": [
{
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseFieldDecayPlacementDateMathDuration"
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDecayPlacementDateMathDuration"
},
{
"type": "object"
}
]
},
"_types.query_dsl:DecayFunctionBaseFieldDecayPlacementDateMathDuration": {
"_types.query_dsl:DecayFunctionBaseDecayPlacementDateMathDuration": {
"type": "object",
"properties": {
"multi_value_mode": {
Expand All @@ -57862,14 +57862,14 @@
"_types.query_dsl:NumericDecayFunction": {
"allOf": [
{
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseFieldDecayPlacementdoubledouble"
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDecayPlacementdoubledouble"
},
{
"type": "object"
}
]
},
"_types.query_dsl:DecayFunctionBaseFieldDecayPlacementdoubledouble": {
"_types.query_dsl:DecayFunctionBaseDecayPlacementdoubledouble": {
"type": "object",
"properties": {
"multi_value_mode": {
Expand All @@ -57880,14 +57880,14 @@
"_types.query_dsl:GeoDecayFunction": {
"allOf": [
{
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseFieldDecayPlacementGeoLocationDistance"
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseDecayPlacementGeoLocationDistance"
},
{
"type": "object"
}
]
},
"_types.query_dsl:DecayFunctionBaseFieldDecayPlacementGeoLocationDistance": {
"_types.query_dsl:DecayFunctionBaseDecayPlacementGeoLocationDistance": {
"type": "object",
"properties": {
"multi_value_mode": {
Expand Down
16 changes: 8 additions & 8 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 14 additions & 46 deletions output/schema/schema-serverless.json
Original file line number Diff line number Diff line change
Expand Up @@ -49902,7 +49902,7 @@
"name": "FunctionBoostMode",
"namespace": "_types.query_dsl"
},
"specLocation": "_types/query_dsl/compound.ts#L285-L311"
"specLocation": "_types/query_dsl/compound.ts#L279-L305"
},
{
"esQuirk": "this container is valid without a variant. Despite being documented as a function, 'weight'\nis actually a container property that can be combined with a function. Comment in the ES code\n(SearchModule#registerScoreFunctions) says: Weight doesn't have its own parser, so every function\nsupports it out of the box. Can be a single function too when not associated to any other function,\nwhich is why it needs to be registered manually here.",
Expand Down Expand Up @@ -50009,7 +50009,7 @@
}
}
],
"specLocation": "_types/query_dsl/compound.ts#L216-L256",
"specLocation": "_types/query_dsl/compound.ts#L210-L250",
"variants": {
"kind": "container"
}
Expand All @@ -50026,7 +50026,7 @@
"name": "DecayFunction",
"namespace": "_types.query_dsl"
},
"specLocation": "_types/query_dsl/compound.ts#L205-L214",
"specLocation": "_types/query_dsl/compound.ts#L199-L208",
"type": {
"items": [
{
Expand Down Expand Up @@ -50074,13 +50074,6 @@
],
"inherits": {
"generics": [
{
"kind": "instance_of",
"type": {
"name": "Field",
"namespace": "_types"
}
},
{
"kind": "user_defined_value"
}
Expand All @@ -50096,7 +50089,7 @@
"namespace": "_types.query_dsl"
},
"properties": [],
"specLocation": "_types/query_dsl/compound.ts#L188-L191"
"specLocation": "_types/query_dsl/compound.ts#L188-L188"
},
{
"attachedBehaviors": [
Expand All @@ -50108,14 +50101,14 @@
{
"kind": "instance_of",
"type": {
"name": "TOrigin",
"namespace": "_types.query_dsl.DecayFunctionBase"
"name": "Field",
"namespace": "_types"
}
},
{
"kind": "instance_of",
"type": {
"name": "TScale",
"name": "TPlacement",
"namespace": "_types.query_dsl.DecayFunctionBase"
}
}
Expand All @@ -50132,11 +50125,7 @@
],
"generics": [
{
"name": "TOrigin",
"namespace": "_types.query_dsl.DecayFunctionBase"
},
{
"name": "TScale",
"name": "TPlacement",
"namespace": "_types.query_dsl.DecayFunctionBase"
}
],
Expand Down Expand Up @@ -50206,21 +50195,14 @@
"name": "MultiValueMode",
"namespace": "_types.query_dsl"
},
"specLocation": "_types/query_dsl/compound.ts#L358-L375"
"specLocation": "_types/query_dsl/compound.ts#L352-L369"
},
{
"attachedBehaviors": [
"AdditionalProperty"
],
"inherits": {
"generics": [
{
"kind": "instance_of",
"type": {
"name": "Field",
"namespace": "_types"
}
},
{
"generics": [
{
Expand Down Expand Up @@ -50256,21 +50238,14 @@
"namespace": "_types.query_dsl"
},
"properties": [],
"specLocation": "_types/query_dsl/compound.ts#L196-L199"
"specLocation": "_types/query_dsl/compound.ts#L192-L194"
},
{
"attachedBehaviors": [
"AdditionalProperty"
],
"inherits": {
"generics": [
{
"kind": "instance_of",
"type": {
"name": "Field",
"namespace": "_types"
}
},
{
"generics": [
{
Expand Down Expand Up @@ -50306,21 +50281,14 @@
"namespace": "_types.query_dsl"
},
"properties": [],
"specLocation": "_types/query_dsl/compound.ts#L192-L195"
"specLocation": "_types/query_dsl/compound.ts#L189-L191"
},
{
"attachedBehaviors": [
"AdditionalProperty"
],
"inherits": {
"generics": [
{
"kind": "instance_of",
"type": {
"name": "Field",
"namespace": "_types"
}
},
{
"generics": [
{
Expand Down Expand Up @@ -50356,7 +50324,7 @@
"namespace": "_types.query_dsl"
},
"properties": [],
"specLocation": "_types/query_dsl/compound.ts#L200-L203"
"specLocation": "_types/query_dsl/compound.ts#L195-L197"
},
{
"kind": "interface",
Expand Down Expand Up @@ -50465,7 +50433,7 @@
"name": "FieldValueFactorModifier",
"namespace": "_types.query_dsl"
},
"specLocation": "_types/query_dsl/compound.ts#L313-L356"
"specLocation": "_types/query_dsl/compound.ts#L307-L350"
},
{
"kind": "interface",
Expand Down Expand Up @@ -50744,7 +50712,7 @@
"name": "FunctionScoreMode",
"namespace": "_types.query_dsl"
},
"specLocation": "_types/query_dsl/compound.ts#L258-L283"
"specLocation": "_types/query_dsl/compound.ts#L252-L277"
},
{
"inherits": {
Expand Down
Loading

0 comments on commit 54a8b37

Please sign in to comment.