diff --git a/generate-files.sh b/generate-files.sh index 2b9a27c..608edb4 100755 --- a/generate-files.sh +++ b/generate-files.sh @@ -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" diff --git a/gpt-schema.dist.yml b/gpt-schema.dist.yml index eef8d4f..ca266c5 100644 --- a/gpt-schema.dist.yml +++ b/gpt-schema.dist.yml @@ -1,7 +1,7 @@ --- openapi: 3.1.0 info: - version: 0.4.0 + version: 0.5.0 title: Elasticsearch API license: name: MIT @@ -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 @@ -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