Skip to content

Commit

Permalink
fix(specs): highlight result map definition
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Dec 1, 2023
1 parent 64da244 commit eeedc79
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions specs/search/common/schemas/Hit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ hit:
_distinctSeqID:
type: integer

highlightResultOptionMap:
type: object
description: Show highlighted section and words matched on a query.
additionalProperties:
$ref: '#/highlightResultOption'

highlightResultOption:
type: object
description: Show highlighted section and words matched on a query.
Expand All @@ -46,10 +52,10 @@ highlightResultOption:

highlightResult:
oneOf:
- $ref: '#/highlightResultOption'
- $ref: '#/highlightResultOptionMap'
- type: array
items:
$ref: '#/highlightResultOption'
$ref: '#/highlightResultOptionMap'

highlightResultMap:
type: object
Expand Down

0 comments on commit eeedc79

Please sign in to comment.