# proposed against the template and updated files generated using the
# 'generate-schemas.py' tool
---
-openapi: '3.0.0'
+openapi: '3.1.0'
info:
title: Patchwork API
description: >
minLength: 1
maxLength: 50
owner:
- type: object
title: Owner
readOnly: true
- nullable: false
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
+ anyOf:
+ - type: 'null'
+ - type: object
+ allOf:
+ - $ref: '#/components/schemas/UserEmbedded'
patches:
title: Patches
type: array
description: >
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
CheckCreate:
type: object
required:
description:
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
Comment:
type: object
properties:
maxLength: 255
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
readOnly: true
addressed:
title: Addressed
- type: boolean
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: boolean
CommentUpdate:
type: object
properties:
addressed:
title: Addressed
- type: boolean
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: boolean
CoverList:
type: object
properties:
maxLength: 255
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
format: iso8601
readOnly: true
actor:
- type: object
title: Actor
description: The user that caused/created this event.
readOnly: true
- nullable: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
payload:
type: object
EventCoverCreated:
$ref: '#/components/schemas/PatchEmbedded'
previous_relation:
title: Previous relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
current_relation:
title: Current relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
EventPatchDelegated:
allOf:
- $ref: '#/components/schemas/EventBase'
maxLength: 255
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
maxLength: 255
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
- type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
allOf:
- $ref: '#/components/schemas/PersonEmbedded'
delegate:
- type: object
title: Delegate
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
mbox:
title: Mbox
type: string
properties:
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
type: boolean
delegate:
title: Delegate
- type: integer
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: integer
related:
title: Relations
type: array
minLength: 1
maxLength: 255
user:
- type: object
title: User
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
Project:
type: object
properties:
maxLength: 64
list_archive_url:
title: List archive URL
- type: string
- format: uri
- maxLength: 2000
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
list_archive_url_format:
title: List archive URL format
- type: string
- format: uri
- maxLength: 2000
- nullable: true
description: >
URL format for the list archive's Message-ID redirector. {} will be
replaced by the Message-ID.
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
commit_url_format:
title: Web SCM URL format for a particular commit
type: string
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
description: >
The target URL to associate with this check. This should be specific
to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
readOnly: true
context:
title: Context
minLength: 1
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
minLength: 1
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
minLength: 1
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
maxLength: 2000
list_archive_url:
title: List archive URL
- type: string
- format: uri
- maxLength: 2000
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
list_archive_url_format:
title: List archive URL format
- type: string
- format: uri
- maxLength: 2000
- nullable: true
description: >
URL format for the list archive's Message-ID redirector. {} will be
replaced by the Message-ID.
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
commit_url_format:
title: Web SCM URL format for a particular commit
type: string
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
readOnly: true
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
readOnly: true
UserEmbedded:
type: object
- nullable: true
properties:
id:
title: ID
# proposed against the template and updated files generated using the
# 'generate-schemas.py' tool
---
-openapi: '3.0.0'
+openapi: '3.1.0'
info:
title: Patchwork API
description: >
minLength: 1
maxLength: 50
owner:
- type: object
title: Owner
readOnly: true
- nullable: false
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
+ anyOf:
+ - type: 'null'
+ - type: object
+ allOf:
+ - $ref: '#/components/schemas/UserEmbedded'
patches:
title: Patches
type: array
description: >
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
CheckCreate:
type: object
required:
description:
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
Comment:
type: object
properties:
{% if version >= (1, 2) %}
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
{% endif %}
date:
title: Date
{% if version >= (1, 3) %}
addressed:
title: Addressed
- type: boolean
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: boolean
CommentUpdate:
type: object
properties:
addressed:
title: Addressed
- type: boolean
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: boolean
{% endif %}
CoverList:
type: object
{% if version >= (1, 2) %}
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
{% endif %}
date:
title: Date
readOnly: true
{% if version >= (1, 2) %}
actor:
- type: object
title: Actor
description: The user that caused/created this event.
readOnly: true
- nullable: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
{% endif %}
payload:
type: object
$ref: '#/components/schemas/PatchEmbedded'
previous_relation:
title: Previous relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
current_relation:
title: Current relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
EventPatchDelegated:
allOf:
- $ref: '#/components/schemas/EventBase'
{% if version >= (1, 2) %}
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
{% endif %}
date:
title: Date
maxLength: 255
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
- type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
allOf:
- $ref: '#/components/schemas/PersonEmbedded'
delegate:
- type: object
title: Delegate
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
mbox:
title: Mbox
type: string
properties:
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
type: boolean
delegate:
title: Delegate
- type: integer
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: integer
{% if version >= (1, 2) %}
related:
title: Relations
minLength: 1
maxLength: 255
user:
- type: object
title: User
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
Project:
type: object
properties:
{% if version >= (1, 2) %}
list_archive_url:
title: List archive URL
- type: string
- format: uri
- maxLength: 2000
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
list_archive_url_format:
title: List archive URL format
- type: string
- format: uri
- maxLength: 2000
- nullable: true
description: >
URL format for the list archive's Message-ID redirector. {} will be
replaced by the Message-ID.
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
commit_url_format:
title: Web SCM URL format for a particular commit
type: string
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
description: >
The target URL to associate with this check. This should be specific
to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
readOnly: true
context:
title: Context
{% if version >= (1, 2) %}
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
{% endif %}
date:
title: Date
{% if version >= (1, 2) %}
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
{% endif %}
date:
title: Date
{% if version >= (1, 2) %}
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
{% endif %}
date:
title: Date
{% if version >= (1, 2) %}
list_archive_url:
title: List archive URL
- type: string
- format: uri
- maxLength: 2000
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
list_archive_url_format:
title: List archive URL format
- type: string
- format: uri
- maxLength: 2000
- nullable: true
description: >
URL format for the list archive's Message-ID redirector. {} will be
replaced by the Message-ID.
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
commit_url_format:
title: Web SCM URL format for a particular commit
type: string
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
readOnly: true
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
readOnly: true
UserEmbedded:
type: object
- nullable: true
properties:
id:
title: ID
# proposed against the template and updated files generated using the
# 'generate-schemas.py' tool
---
-openapi: '3.0.0'
+openapi: '3.1.0'
info:
title: Patchwork API
description: >
minLength: 1
maxLength: 50
owner:
- type: object
title: Owner
readOnly: true
- nullable: false
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
+ anyOf:
+ - type: 'null'
+ - type: object
+ allOf:
+ - $ref: '#/components/schemas/UserEmbedded'
patches:
title: Patches
type: array
description: >
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
CheckCreate:
type: object
required:
description:
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
Comment:
type: object
properties:
$ref: '#/components/schemas/PatchEmbedded'
previous_relation:
title: Previous relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
current_relation:
title: Current relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
EventPatchDelegated:
allOf:
- $ref: '#/components/schemas/EventBase'
maxLength: 255
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
- type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
allOf:
- $ref: '#/components/schemas/PersonEmbedded'
delegate:
- type: object
title: Delegate
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
mbox:
title: Mbox
type: string
properties:
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
type: boolean
delegate:
title: Delegate
- type: integer
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: integer
Person:
type: object
properties:
minLength: 1
maxLength: 255
user:
- type: object
title: User
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
Project:
type: object
properties:
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
description: >
The target URL to associate with this check. This should be specific
to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
readOnly: true
context:
title: Context
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
readOnly: true
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
readOnly: true
UserEmbedded:
type: object
- nullable: true
properties:
id:
title: ID
# proposed against the template and updated files generated using the
# 'generate-schemas.py' tool
---
-openapi: '3.0.0'
+openapi: '3.1.0'
info:
title: Patchwork API
description: >
minLength: 1
maxLength: 50
owner:
- type: object
title: Owner
readOnly: true
- nullable: false
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
+ anyOf:
+ - type: 'null'
+ - type: object
+ allOf:
+ - $ref: '#/components/schemas/UserEmbedded'
patches:
title: Patches
type: array
description: >
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
CheckCreate:
type: object
required:
description:
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
Comment:
type: object
properties:
$ref: '#/components/schemas/PatchEmbedded'
previous_relation:
title: Previous relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
current_relation:
title: Current relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
EventPatchDelegated:
allOf:
- $ref: '#/components/schemas/EventBase'
maxLength: 255
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
- type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
allOf:
- $ref: '#/components/schemas/PersonEmbedded'
delegate:
- type: object
title: Delegate
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
mbox:
title: Mbox
type: string
properties:
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
type: boolean
delegate:
title: Delegate
- type: integer
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: integer
Person:
type: object
properties:
minLength: 1
maxLength: 255
user:
- type: object
title: User
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
Project:
type: object
properties:
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
description: >
The target URL to associate with this check. This should be specific
to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
readOnly: true
context:
title: Context
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
readOnly: true
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
readOnly: true
UserEmbedded:
type: object
- nullable: true
properties:
id:
title: ID
# proposed against the template and updated files generated using the
# 'generate-schemas.py' tool
---
-openapi: '3.0.0'
+openapi: '3.1.0'
info:
title: Patchwork API
description: >
minLength: 1
maxLength: 50
owner:
- type: object
title: Owner
readOnly: true
- nullable: false
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
+ anyOf:
+ - type: 'null'
+ - type: object
+ allOf:
+ - $ref: '#/components/schemas/UserEmbedded'
patches:
title: Patches
type: array
description: >
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
CheckCreate:
type: object
required:
description:
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
Comment:
type: object
properties:
maxLength: 255
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
maxLength: 255
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
format: iso8601
readOnly: true
actor:
- type: object
title: Actor
description: The user that caused/created this event.
readOnly: true
- nullable: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
payload:
type: object
EventCoverCreated:
$ref: '#/components/schemas/PatchEmbedded'
previous_relation:
title: Previous relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
current_relation:
title: Current relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
EventPatchDelegated:
allOf:
- $ref: '#/components/schemas/EventBase'
maxLength: 255
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
maxLength: 255
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
- type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
allOf:
- $ref: '#/components/schemas/PersonEmbedded'
delegate:
- type: object
title: Delegate
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
mbox:
title: Mbox
type: string
properties:
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
type: boolean
delegate:
title: Delegate
- type: integer
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: integer
related:
title: Relations
type: array
minLength: 1
maxLength: 255
user:
- type: object
title: User
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
Project:
type: object
properties:
maxLength: 64
list_archive_url:
title: List archive URL
- type: string
- format: uri
- maxLength: 2000
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
list_archive_url_format:
title: List archive URL format
- type: string
- format: uri
- maxLength: 2000
- nullable: true
description: >
URL format for the list archive's Message-ID redirector. {} will be
replaced by the Message-ID.
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
commit_url_format:
title: Web SCM URL format for a particular commit
type: string
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
description: >
The target URL to associate with this check. This should be specific
to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
readOnly: true
context:
title: Context
minLength: 1
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
minLength: 1
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
minLength: 1
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
maxLength: 2000
list_archive_url:
title: List archive URL
- type: string
- format: uri
- maxLength: 2000
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
list_archive_url_format:
title: List archive URL format
- type: string
- format: uri
- maxLength: 2000
- nullable: true
description: >
URL format for the list archive's Message-ID redirector. {} will be
replaced by the Message-ID.
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
commit_url_format:
title: Web SCM URL format for a particular commit
type: string
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
readOnly: true
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
readOnly: true
UserEmbedded:
type: object
- nullable: true
properties:
id:
title: ID
# proposed against the template and updated files generated using the
# 'generate-schemas.py' tool
---
-openapi: '3.0.0'
+openapi: '3.1.0'
info:
title: Patchwork API
description: >
minLength: 1
maxLength: 50
owner:
- type: object
title: Owner
readOnly: true
- nullable: false
- allOf:
- - $ref: '#/components/schemas/UserEmbedded'
+ anyOf:
+ - type: 'null'
+ - type: object
+ allOf:
+ - $ref: '#/components/schemas/UserEmbedded'
patches:
title: Patches
type: array
description: >
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
CheckCreate:
type: object
required:
description:
The target URL to associate with this check. This should be
specific to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
context:
title: Context
description: >
description:
title: Description
description: A brief description of the check.
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
Comment:
type: object
properties:
maxLength: 255
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
readOnly: true
addressed:
title: Addressed
- type: boolean
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: boolean
CommentUpdate:
type: object
properties:
addressed:
title: Addressed
- type: boolean
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: boolean
CoverList:
type: object
properties:
maxLength: 255
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
format: iso8601
readOnly: true
actor:
- type: object
title: Actor
description: The user that caused/created this event.
readOnly: true
- nullable: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
payload:
type: object
EventCoverCreated:
$ref: '#/components/schemas/PatchEmbedded'
previous_relation:
title: Previous relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
current_relation:
title: Current relation
- type: string
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
EventPatchDelegated:
allOf:
- $ref: '#/components/schemas/EventBase'
maxLength: 255
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
maxLength: 255
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
- type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
allOf:
- $ref: '#/components/schemas/PersonEmbedded'
delegate:
- type: object
title: Delegate
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
mbox:
title: Mbox
type: string
properties:
commit_ref:
title: Commit ref
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
pull_url:
title: Pull URL
type: string
- format: uri
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
+ format: uri
state:
title: State
type: string
type: boolean
delegate:
title: Delegate
- type: integer
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: integer
related:
title: Relations
type: array
minLength: 1
maxLength: 255
user:
- type: object
title: User
- nullable: true
readOnly: true
- allOf:
+ anyOf:
- $ref: '#/components/schemas/UserEmbedded'
+ - type: 'null'
Project:
type: object
properties:
maxLength: 64
list_archive_url:
title: List archive URL
- type: string
- format: uri
- maxLength: 2000
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
list_archive_url_format:
title: List archive URL format
- type: string
- format: uri
- maxLength: 2000
- nullable: true
description: >
URL format for the list archive's Message-ID redirector. {} will be
replaced by the Message-ID.
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
commit_url_format:
title: Web SCM URL format for a particular commit
type: string
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
description: >
The target URL to associate with this check. This should be specific
to the patch.
- type: string
- format: uri
- maxLength: 200
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 200
readOnly: true
context:
title: Context
minLength: 1
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
minLength: 1
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
minLength: 1
list_archive_url:
title: List archive URL
- type: string
readOnly: true
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
date:
title: Date
type: string
maxLength: 2000
list_archive_url:
title: List archive URL
- type: string
- format: uri
- maxLength: 2000
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
list_archive_url_format:
title: List archive URL format
- type: string
- format: uri
- maxLength: 2000
- nullable: true
description: >
URL format for the list archive's Message-ID redirector. {} will be
replaced by the Message-ID.
+ oneOf:
+ - type: 'null'
+ - type: string
+ format: uri
+ maxLength: 2000
commit_url_format:
title: Web SCM URL format for a particular commit
type: string
description: >
An optional name to associate with the series, e.g. "John's PCI
series".
- type: string
readOnly: true
- maxLength: 255
- nullable: true
+ oneOf:
+ - type: 'null'
+ - type: string
+ maxLength: 255
date:
title: Date
type: string
readOnly: true
UserEmbedded:
type: object
- nullable: true
properties:
id:
title: ID
from openapi_core.unmarshalling.schemas.formatters import Formatter
from openapi_core.validation.request.validators import RequestValidator
from openapi_core.validation.response.validators import ResponseValidator
-from openapi_schema_validator import OAS30Validator
+from openapi_schema_validator import OAS31Validator
from rest_framework import status
import yaml
response = DjangoOpenAPIResponse(response)
schema_unmarshallers_factory = SchemaUnmarshallersFactory(
- OAS30Validator,
+ OAS31Validator,
custom_formatters=CUSTOM_FORMATTERS,
# context=UnmarshalContext.RESPONSE,
)