schema:
type: array
items:
- oneOf:
+ anyOf:
- $ref: '#/components/schemas/EventCoverCreated'
- $ref: '#/components/schemas/EventPatchCreated'
- $ref: '#/components/schemas/EventPatchCompleted'
title: Actor
description: The user that caused/created this event.
readOnly: true
+ nullable: true
allOf:
- $ref: '#/components/schemas/UserEmbedded'
payload:
payload:
properties:
cover:
- title: Cover
- type: string
- readOnly: true
+ $ref: '#/components/schemas/CoverLetterEmbedded'
EventPatchCreated:
allOf:
- $ref: '#/components/schemas/EventBase'
patch:
$ref: '#/components/schemas/PatchEmbedded'
previous_delegate:
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
- - title: Previous delegate
+ $ref: '#/components/schemas/UserEmbedded'
current_delegate:
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
- - title: Current delegate
+ $ref: '#/components/schemas/UserEmbedded'
EventCheckCreated:
allOf:
- $ref: '#/components/schemas/EventBase'
schema:
type: array
items:
- oneOf:
+ anyOf:
- $ref: '#/components/schemas/EventCoverCreated'
- $ref: '#/components/schemas/EventPatchCreated'
- $ref: '#/components/schemas/EventPatchCompleted'
title: Actor
description: The user that caused/created this event.
readOnly: true
+ nullable: true
allOf:
- $ref: '#/components/schemas/UserEmbedded'
{% endif %}
payload:
properties:
cover:
- title: Cover
- type: string
- readOnly: true
+ $ref: '#/components/schemas/CoverLetterEmbedded'
EventPatchCreated:
allOf:
- $ref: '#/components/schemas/EventBase'
patch:
$ref: '#/components/schemas/PatchEmbedded'
previous_delegate:
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
- - title: Previous delegate
+ $ref: '#/components/schemas/UserEmbedded'
current_delegate:
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
- - title: Current delegate
+ $ref: '#/components/schemas/UserEmbedded'
EventCheckCreated:
allOf:
- $ref: '#/components/schemas/EventBase'
schema:
type: array
items:
- oneOf:
+ anyOf:
- $ref: '#/components/schemas/EventCoverCreated'
- $ref: '#/components/schemas/EventPatchCreated'
- $ref: '#/components/schemas/EventPatchCompleted'
payload:
properties:
cover:
- title: Cover
- type: string
- readOnly: true
+ $ref: '#/components/schemas/CoverLetterEmbedded'
EventPatchCreated:
allOf:
- $ref: '#/components/schemas/EventBase'
patch:
$ref: '#/components/schemas/PatchEmbedded'
previous_delegate:
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
- - title: Previous delegate
+ $ref: '#/components/schemas/UserEmbedded'
current_delegate:
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
- - title: Current delegate
+ $ref: '#/components/schemas/UserEmbedded'
EventCheckCreated:
allOf:
- $ref: '#/components/schemas/EventBase'
schema:
type: array
items:
- oneOf:
+ anyOf:
- $ref: '#/components/schemas/EventCoverCreated'
- $ref: '#/components/schemas/EventPatchCreated'
- $ref: '#/components/schemas/EventPatchCompleted'
payload:
properties:
cover:
- title: Cover
- type: string
- readOnly: true
+ $ref: '#/components/schemas/CoverLetterEmbedded'
EventPatchCreated:
allOf:
- $ref: '#/components/schemas/EventBase'
patch:
$ref: '#/components/schemas/PatchEmbedded'
previous_delegate:
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
- - title: Previous delegate
+ $ref: '#/components/schemas/UserEmbedded'
current_delegate:
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
- - title: Current delegate
+ $ref: '#/components/schemas/UserEmbedded'
EventCheckCreated:
allOf:
- $ref: '#/components/schemas/EventBase'
schema:
type: array
items:
- oneOf:
+ anyOf:
- $ref: '#/components/schemas/EventCoverCreated'
- $ref: '#/components/schemas/EventPatchCreated'
- $ref: '#/components/schemas/EventPatchCompleted'
title: Actor
description: The user that caused/created this event.
readOnly: true
+ nullable: true
allOf:
- $ref: '#/components/schemas/UserEmbedded'
payload:
payload:
properties:
cover:
- title: Cover
- type: string
- readOnly: true
+ $ref: '#/components/schemas/CoverLetterEmbedded'
EventPatchCreated:
allOf:
- $ref: '#/components/schemas/EventBase'
patch:
$ref: '#/components/schemas/PatchEmbedded'
previous_delegate:
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
- - title: Previous delegate
+ $ref: '#/components/schemas/UserEmbedded'
current_delegate:
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
- - title: Current delegate
+ $ref: '#/components/schemas/UserEmbedded'
EventCheckCreated:
allOf:
- $ref: '#/components/schemas/EventBase'
# There should only be one
self.assertEqual(1, len(resp.data))
- resp = self.client.get(self.api_url(), {'category': 'foo-bar'})
+ resp = self.client.get(
+ self.api_url(),
+ {'category': 'foo-bar'},
+ validate_request=False,
+ )
self.assertEqual(0, len(resp.data))
def test_list_filter_patch(self):