Skip to content

Commit

Permalink
fix event search response schema
Browse files Browse the repository at this point in the history
  • Loading branch information
srri committed Nov 8, 2024
1 parent 69a7ce7 commit f433a23
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 19 deletions.
16 changes: 0 additions & 16 deletions schemas/components/schemas/EventsGetSearchEventsResponse.yaml

This file was deleted.

18 changes: 18 additions & 0 deletions schemas/components/schemas/SearchEventsResponse.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
type: object
description: >-
Contains a list of events from all activated products
additionalProperties: false
properties:
events:
type: array
items:
type: object
description: >-
Results for each identification event
required:
- products
properties:
products:
$ref: Products.yaml
paginationKey:
type: string
6 changes: 3 additions & 3 deletions schemas/paths/event-search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ get:
Filter events previously tagged as suspicious via the [Update API](https://dev.fingerprint.com/reference/updateevent).
responses:
'200':
description: OK.
description: Events matching the filter(s).
content:
application/json:
schema:
$ref: '../components/schemas/EventsGetSearchEventsResponse.yaml'
$ref: '../components/schemas/SearchEventsResponse.yaml'
examples:
200-full:
summary: Example response
summary: Example search results
externalValue: 'examples/get_event_search_200.json'
'403':
description: Forbidden. Access to this API is denied.
Expand Down

0 comments on commit f433a23

Please sign in to comment.