Skip to content

Commit

Permalink
fix: conf generation and sort parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal committed Sep 9, 2024
1 parent 138737f commit 0f12ccc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 17 deletions.
2 changes: 1 addition & 1 deletion generate-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ for conf_file in conf/gpt-values-override-conf.*.sh; do
fi

# Extract the [my_id] part from the filename
my_id=$(echo "$conf_file" | sed 's/^gpt-values-override-conf\.//;s/\.sh$//')
my_id=$(echo "$conf_file" | sed 's/.*gpt-values-override-conf\.\(.*\)\.sh/\1/')

# Process the configuration file
process_conf_file "$conf_file" "$my_id"
Expand Down
47 changes: 31 additions & 16 deletions gpt-schema.dist.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
openapi: 3.1.0
info:
version: 0.4.0
version: 0.5.0
title: Elasticsearch API
license:
name: MIT
Expand Down Expand Up @@ -151,23 +151,42 @@ paths:
description: Sort order for results
items:
type: object
example:
field_name:
order: asc
additionalProperties: false
properties:
field_name:
type: string
order:
type: string
enum:
- asc
- desc
type: object
description: "Sorting criteria for the specified field"
properties:
order:
type: string
enum:
- asc
- desc
description: "Sort order, either ascending (asc) or descending (desc)"
mode:
type: string
enum:
- min
- max
- sum
- avg
- median
description: "Mode to resolve conflicts in sorting for multi-valued fields"
missing:
type: string
description: "Specifies how to handle missing values ('_last' or '_first')"
unmapped_type:
type: string
description: "Specifies how to treat unmapped fields during sorting"
enum:
- long
from:
type: integer
description: Starting point for results (for pagination)
example: 0
_source:
type: array
description: Specifies which fields to return
items:
type: string
highlight:
type: object
description: Highlighting options for search results
Expand All @@ -179,10 +198,6 @@ paths:
description: Aggregations for the search results
additionalProperties:
type: object
track_total_hits:
type: boolean
description: Whether to track the total number of hits
example: true
required:
- query
- size
Expand Down

0 comments on commit 0f12ccc

Please sign in to comment.