Skip to content

Commit

Permalink
restore semantic_text field type support
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Oct 9, 2024
1 parent 40f96ca commit 2a3faae
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions spec/integration/data_stream/fields/fields.spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ spec:
- version
- unsigned_long
- counted_keyword
- semantic_text

description:
description: Short description of field
Expand Down Expand Up @@ -423,6 +424,12 @@ spec:
type: boolean
default: true

inference_id:
description: >
For semantic_text fields, this specifies the id of the inference
endpoint associated with the field
type: string

# Conditional properties.
default_metric: true
metrics: true
Expand Down Expand Up @@ -590,12 +597,30 @@ spec:
- object
required:
- type
- if:
required:
- inference_id
then:
properties:
type:
enum:
- semantic_text
required:
- type

required:
- name

# JSON patches for newer versions should be placed on top
versions:
- before: 3.4.0
patch:
- op: remove
path: "/items/properties/type/enum/35" #remove semantic_text type
- op: remove
path: "/items/allOf/9" # removing inference_id when type is semantic_text
- op: remove
path: "/items/properties/inference_id" # removing inference_id field
- before: 3.2.0
patch:
- op: remove
Expand Down

0 comments on commit 2a3faae

Please sign in to comment.