Skip to content

Commit 899769d

Browse files
Update specification output
1 parent ad93fc7 commit 899769d

File tree

3 files changed

+854
-629
lines changed

3 files changed

+854
-629
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 209 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -57566,6 +57566,9 @@
5756657566
},
5756757567
"_types.query_dsl:DistanceFeatureQuery": {
5756857568
"oneOf": [
57569+
{
57570+
"$ref": "#/components/schemas/_types.query_dsl:UntypedDistanceFeatureQuery"
57571+
},
5756957572
{
5757057573
"$ref": "#/components/schemas/_types.query_dsl:GeoDistanceFeatureQuery"
5757157574
},
@@ -57574,6 +57577,44 @@
5757457577
}
5757557578
]
5757657579
},
57580+
"_types.query_dsl:UntypedDistanceFeatureQuery": {
57581+
"allOf": [
57582+
{
57583+
"$ref": "#/components/schemas/_types.query_dsl:DistanceFeatureQueryBase"
57584+
},
57585+
{
57586+
"type": "object"
57587+
}
57588+
]
57589+
},
57590+
"_types.query_dsl:DistanceFeatureQueryBase": {
57591+
"allOf": [
57592+
{
57593+
"$ref": "#/components/schemas/_types.query_dsl:QueryBase"
57594+
},
57595+
{
57596+
"type": "object",
57597+
"properties": {
57598+
"origin": {
57599+
"description": "Date or point of origin used to calculate distances.\nIf the `field` value is a `date` or `date_nanos` field, the `origin` value must be a date.\nDate Math, such as `now-1h`, is supported.\nIf the field value is a `geo_point` field, the `origin` value must be a geopoint.",
57600+
"type": "object"
57601+
},
57602+
"pivot": {
57603+
"description": "Distance from the `origin` at which relevance scores receive half of the `boost` value.\nIf the `field` value is a `date` or `date_nanos` field, the `pivot` value must be a time unit, such as `1h` or `10d`. If the `field` value is a `geo_point` field, the `pivot` value must be a distance unit, such as `1km` or `12m`.",
57604+
"type": "object"
57605+
},
57606+
"field": {
57607+
"$ref": "#/components/schemas/_types:Field"
57608+
}
57609+
},
57610+
"required": [
57611+
"origin",
57612+
"pivot",
57613+
"field"
57614+
]
57615+
}
57616+
]
57617+
},
5757757618
"_types.query_dsl:GeoDistanceFeatureQuery": {
5757857619
"allOf": [
5757957620
{
@@ -57759,6 +57800,9 @@
5775957800
},
5776057801
"_types.query_dsl:DecayFunction": {
5776157802
"oneOf": [
57803+
{
57804+
"$ref": "#/components/schemas/_types.query_dsl:UntypedDecayFunction"
57805+
},
5776257806
{
5776357807
"$ref": "#/components/schemas/_types.query_dsl:DateDecayFunction"
5776457808
},
@@ -57770,17 +57814,17 @@
5777057814
}
5777157815
]
5777257816
},
57773-
"_types.query_dsl:DateDecayFunction": {
57817+
"_types.query_dsl:UntypedDecayFunction": {
5777457818
"allOf": [
5777557819
{
57776-
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBase"
57820+
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseField"
5777757821
},
5777857822
{
5777957823
"type": "object"
5778057824
}
5778157825
]
5778257826
},
57783-
"_types.query_dsl:DecayFunctionBase": {
57827+
"_types.query_dsl:DecayFunctionBaseField": {
5778457828
"type": "object",
5778557829
"properties": {
5778657830
"multi_value_mode": {
@@ -57797,26 +57841,60 @@
5779757841
"sum"
5779857842
]
5779957843
},
57844+
"_types.query_dsl:DateDecayFunction": {
57845+
"allOf": [
57846+
{
57847+
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseFieldDecayPlacementDateMathDuration"
57848+
},
57849+
{
57850+
"type": "object"
57851+
}
57852+
]
57853+
},
57854+
"_types.query_dsl:DecayFunctionBaseFieldDecayPlacementDateMathDuration": {
57855+
"type": "object",
57856+
"properties": {
57857+
"multi_value_mode": {
57858+
"$ref": "#/components/schemas/_types.query_dsl:MultiValueMode"
57859+
}
57860+
}
57861+
},
5780057862
"_types.query_dsl:NumericDecayFunction": {
5780157863
"allOf": [
5780257864
{
57803-
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBase"
57865+
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseFieldDecayPlacementdoubledouble"
5780457866
},
5780557867
{
5780657868
"type": "object"
5780757869
}
5780857870
]
5780957871
},
57872+
"_types.query_dsl:DecayFunctionBaseFieldDecayPlacementdoubledouble": {
57873+
"type": "object",
57874+
"properties": {
57875+
"multi_value_mode": {
57876+
"$ref": "#/components/schemas/_types.query_dsl:MultiValueMode"
57877+
}
57878+
}
57879+
},
5781057880
"_types.query_dsl:GeoDecayFunction": {
5781157881
"allOf": [
5781257882
{
57813-
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBase"
57883+
"$ref": "#/components/schemas/_types.query_dsl:DecayFunctionBaseFieldDecayPlacementGeoLocationDistance"
5781457884
},
5781557885
{
5781657886
"type": "object"
5781757887
}
5781857888
]
5781957889
},
57890+
"_types.query_dsl:DecayFunctionBaseFieldDecayPlacementGeoLocationDistance": {
57891+
"type": "object",
57892+
"properties": {
57893+
"multi_value_mode": {
57894+
"$ref": "#/components/schemas/_types.query_dsl:MultiValueMode"
57895+
}
57896+
}
57897+
},
5782057898
"_types.query_dsl:FieldValueFactorScoreFunction": {
5782157899
"type": "object",
5782257900
"properties": {
@@ -60357,41 +60435,75 @@
6035760435
},
6035860436
"_types.query_dsl:RangeQuery": {
6035960437
"oneOf": [
60438+
{
60439+
"$ref": "#/components/schemas/_types.query_dsl:UntypedRangeQuery"
60440+
},
6036060441
{
6036160442
"$ref": "#/components/schemas/_types.query_dsl:DateRangeQuery"
6036260443
},
6036360444
{
6036460445
"$ref": "#/components/schemas/_types.query_dsl:NumberRangeQuery"
6036560446
},
6036660447
{
60367-
"$ref": "#/components/schemas/_types.query_dsl:TermsRangeQuery"
60448+
"$ref": "#/components/schemas/_types.query_dsl:TermRangeQuery"
6036860449
}
6036960450
]
6037060451
},
60371-
"_types.query_dsl:DateRangeQuery": {
60452+
"_types.query_dsl:UntypedRangeQuery": {
6037260453
"allOf": [
6037360454
{
6037460455
"$ref": "#/components/schemas/_types.query_dsl:RangeQueryBase"
6037560456
},
6037660457
{
6037760458
"type": "object",
6037860459
"properties": {
60460+
"format": {
60461+
"$ref": "#/components/schemas/_types:DateFormat"
60462+
},
60463+
"time_zone": {
60464+
"$ref": "#/components/schemas/_types:TimeZone"
60465+
}
60466+
}
60467+
}
60468+
]
60469+
},
60470+
"_types:DateFormat": {
60471+
"externalDocs": {
60472+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html"
60473+
},
60474+
"type": "string"
60475+
},
60476+
"_types.query_dsl:RangeQueryBase": {
60477+
"allOf": [
60478+
{
60479+
"$ref": "#/components/schemas/_types.query_dsl:QueryBase"
60480+
},
60481+
{
60482+
"type": "object",
60483+
"properties": {
60484+
"relation": {
60485+
"$ref": "#/components/schemas/_types.query_dsl:RangeRelation"
60486+
},
6037960487
"gt": {
60380-
"$ref": "#/components/schemas/_types:DateMath"
60488+
"description": "Greater than.",
60489+
"type": "object"
6038160490
},
6038260491
"gte": {
60383-
"$ref": "#/components/schemas/_types:DateMath"
60492+
"description": "Greater than or equal to.",
60493+
"type": "object"
6038460494
},
6038560495
"lt": {
60386-
"$ref": "#/components/schemas/_types:DateMath"
60496+
"description": "Less than.",
60497+
"type": "object"
6038760498
},
6038860499
"lte": {
60389-
"$ref": "#/components/schemas/_types:DateMath"
60500+
"description": "Less than or equal to.",
60501+
"type": "object"
6039060502
},
6039160503
"from": {
6039260504
"oneOf": [
6039360505
{
60394-
"$ref": "#/components/schemas/_types:DateMath"
60506+
"type": "object"
6039560507
},
6039660508
{
6039760509
"nullable": true,
@@ -60402,14 +60514,34 @@
6040260514
"to": {
6040360515
"oneOf": [
6040460516
{
60405-
"$ref": "#/components/schemas/_types:DateMath"
60517+
"type": "object"
6040660518
},
6040760519
{
6040860520
"nullable": true,
6040960521
"type": "string"
6041060522
}
6041160523
]
60412-
},
60524+
}
60525+
}
60526+
}
60527+
]
60528+
},
60529+
"_types.query_dsl:RangeRelation": {
60530+
"type": "string",
60531+
"enum": [
60532+
"within",
60533+
"contains",
60534+
"intersects"
60535+
]
60536+
},
60537+
"_types.query_dsl:DateRangeQuery": {
60538+
"allOf": [
60539+
{
60540+
"$ref": "#/components/schemas/_types.query_dsl:RangeQueryBaseDateMath"
60541+
},
60542+
{
60543+
"type": "object",
60544+
"properties": {
6041360545
"format": {
6041460546
"$ref": "#/components/schemas/_types:DateFormat"
6041560547
},
@@ -60420,13 +60552,7 @@
6042060552
}
6042160553
]
6042260554
},
60423-
"_types:DateFormat": {
60424-
"externalDocs": {
60425-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html"
60426-
},
60427-
"type": "string"
60428-
},
60429-
"_types.query_dsl:RangeQueryBase": {
60555+
"_types.query_dsl:RangeQueryBaseDateMath": {
6043060556
"allOf": [
6043160557
{
6043260558
"$ref": "#/components/schemas/_types.query_dsl:QueryBase"
@@ -60436,27 +60562,66 @@
6043660562
"properties": {
6043760563
"relation": {
6043860564
"$ref": "#/components/schemas/_types.query_dsl:RangeRelation"
60565+
},
60566+
"gt": {
60567+
"$ref": "#/components/schemas/_types:DateMath"
60568+
},
60569+
"gte": {
60570+
"$ref": "#/components/schemas/_types:DateMath"
60571+
},
60572+
"lt": {
60573+
"$ref": "#/components/schemas/_types:DateMath"
60574+
},
60575+
"lte": {
60576+
"$ref": "#/components/schemas/_types:DateMath"
60577+
},
60578+
"from": {
60579+
"oneOf": [
60580+
{
60581+
"$ref": "#/components/schemas/_types:DateMath"
60582+
},
60583+
{
60584+
"nullable": true,
60585+
"type": "string"
60586+
}
60587+
]
60588+
},
60589+
"to": {
60590+
"oneOf": [
60591+
{
60592+
"$ref": "#/components/schemas/_types:DateMath"
60593+
},
60594+
{
60595+
"nullable": true,
60596+
"type": "string"
60597+
}
60598+
]
6043960599
}
6044060600
}
6044160601
}
6044260602
]
6044360603
},
60444-
"_types.query_dsl:RangeRelation": {
60445-
"type": "string",
60446-
"enum": [
60447-
"within",
60448-
"contains",
60449-
"intersects"
60604+
"_types.query_dsl:NumberRangeQuery": {
60605+
"allOf": [
60606+
{
60607+
"$ref": "#/components/schemas/_types.query_dsl:RangeQueryBasedouble"
60608+
},
60609+
{
60610+
"type": "object"
60611+
}
6045060612
]
6045160613
},
60452-
"_types.query_dsl:NumberRangeQuery": {
60614+
"_types.query_dsl:RangeQueryBasedouble": {
6045360615
"allOf": [
6045460616
{
60455-
"$ref": "#/components/schemas/_types.query_dsl:RangeQueryBase"
60617+
"$ref": "#/components/schemas/_types.query_dsl:QueryBase"
6045660618
},
6045760619
{
6045860620
"type": "object",
6045960621
"properties": {
60622+
"relation": {
60623+
"$ref": "#/components/schemas/_types.query_dsl:RangeRelation"
60624+
},
6046060625
"gt": {
6046160626
"description": "Greater than.",
6046260627
"type": "number"
@@ -60499,14 +60664,27 @@
6049960664
}
6050060665
]
6050160666
},
60502-
"_types.query_dsl:TermsRangeQuery": {
60667+
"_types.query_dsl:TermRangeQuery": {
6050360668
"allOf": [
6050460669
{
60505-
"$ref": "#/components/schemas/_types.query_dsl:RangeQueryBase"
60670+
"$ref": "#/components/schemas/_types.query_dsl:RangeQueryBasestring"
60671+
},
60672+
{
60673+
"type": "object"
60674+
}
60675+
]
60676+
},
60677+
"_types.query_dsl:RangeQueryBasestring": {
60678+
"allOf": [
60679+
{
60680+
"$ref": "#/components/schemas/_types.query_dsl:QueryBase"
6050660681
},
6050760682
{
6050860683
"type": "object",
6050960684
"properties": {
60685+
"relation": {
60686+
"$ref": "#/components/schemas/_types.query_dsl:RangeRelation"
60687+
},
6051060688
"gt": {
6051160689
"description": "Greater than.",
6051260690
"type": "string"

0 commit comments

Comments
 (0)