Skip to content
This repository was archived by the owner on Jun 2, 2026. It is now read-only.

Commit f11cd6d

Browse files
committed
bump schema to 2.56.2
1 parent 0b20c26 commit f11cd6d

3 files changed

Lines changed: 151 additions & 4 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ testpub:
3838
uv run twine upload --repository testpypi dist/*
3939

4040
schema:
41-
./support/openapi/fetch_openapi.py --output ./support/openapi/openapi-new.json
42-
./support/openapi/openapi_changelog.py ./support/openapi/openapi.json ./support/openapi/openapi-new.json
41+
uv run ./support/openapi/fetch_openapi.py --output ./support/openapi/openapi-new.json
42+
uv run ./support/openapi/openapi_changelog.py ./support/openapi/openapi.json ./support/openapi/openapi-new.json
4343
mv ./support/openapi/openapi-new.json ./support/openapi/openapi.json
4444

4545
templates:

support/openapi/OPENAPI_CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
## v 2.56.2 (from v 2.56.1)
2+
3+
### New
4+
5+
#### Endpoints
6+
- `GET /api/v2/risk_acceptance/{id}/notes/`
7+
- `POST /api/v2/risk_acceptance/{id}/notes/`
8+
9+
#### Models
10+
- `RiskAcceptanceToNotes`
11+
12+
### Changed
13+
14+
#### Endpoints
15+
- `GET /api/v2/endpoints/`
16+
17+
#### Models
18+
- `Endpoint`
19+
120
## v 2.56.1 (from v 2.46.2)
221

322
### New

support/openapi/openapi.json

Lines changed: 130 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"openapi": "3.0.3",
33
"info": {
44
"title": "DefectDojo API v2",
5-
"version": "2.56.1",
5+
"version": "2.56.2",
66
"description": "DefectDojo - Open Source vulnerability Management made easy. Prefetch related parameters/responses not yet in the schema."
77
},
88
"paths": {
@@ -4973,16 +4973,18 @@
49734973
"items": {
49744974
"type": "string",
49754975
"enum": [
4976+
"-active_finding_count",
49764977
"-host",
49774978
"-id",
49784979
"-product",
4980+
"active_finding_count",
49794981
"host",
49804982
"id",
49814983
"product"
49824984
]
49834985
}
49844986
},
4985-
"description": "Ordering\n\n* `host` - Host\n* `-host` - Host (descending)\n* `product` - Product\n* `-product` - Product (descending)\n* `id` - Id\n* `-id` - Id (descending)",
4987+
"description": "Ordering\n\n* `host` - Host\n* `-host` - Host (descending)\n* `product` - Product\n* `-product` - Product (descending)\n* `id` - Id\n* `-id` - Id (descending)\n* `active_finding_count` - Active Findings Count\n* `-active_finding_count` - Active Findings Count (descending)",
49864988
"explode": false,
49874989
"style": "form"
49884990
},
@@ -23593,6 +23595,108 @@
2359323595
}
2359423596
}
2359523597
},
23598+
"/api/v2/risk_acceptance/{id}/notes/": {
23599+
"get": {
23600+
"operationId": "risk_acceptance_notes_retrieve",
23601+
"parameters": [
23602+
{
23603+
"in": "path",
23604+
"name": "id",
23605+
"schema": {
23606+
"type": "integer"
23607+
},
23608+
"description": "A unique integer value identifying this risk_ acceptance.",
23609+
"required": true
23610+
}
23611+
],
23612+
"tags": [
23613+
"risk_acceptance"
23614+
],
23615+
"security": [
23616+
{
23617+
"cookieAuth": []
23618+
},
23619+
{
23620+
"basicAuth": []
23621+
},
23622+
{
23623+
"tokenAuth": []
23624+
}
23625+
],
23626+
"responses": {
23627+
"200": {
23628+
"content": {
23629+
"application/json": {
23630+
"schema": {
23631+
"$ref": "#/components/schemas/RiskAcceptanceToNotes"
23632+
}
23633+
}
23634+
},
23635+
"description": ""
23636+
}
23637+
}
23638+
},
23639+
"post": {
23640+
"operationId": "risk_acceptance_notes_create",
23641+
"parameters": [
23642+
{
23643+
"in": "path",
23644+
"name": "id",
23645+
"schema": {
23646+
"type": "integer"
23647+
},
23648+
"description": "A unique integer value identifying this risk_ acceptance.",
23649+
"required": true
23650+
}
23651+
],
23652+
"tags": [
23653+
"risk_acceptance"
23654+
],
23655+
"requestBody": {
23656+
"content": {
23657+
"application/json": {
23658+
"schema": {
23659+
"$ref": "#/components/schemas/AddNewNoteOptionRequest"
23660+
}
23661+
},
23662+
"application/x-www-form-urlencoded": {
23663+
"schema": {
23664+
"$ref": "#/components/schemas/AddNewNoteOptionRequest"
23665+
}
23666+
},
23667+
"multipart/form-data": {
23668+
"schema": {
23669+
"$ref": "#/components/schemas/AddNewNoteOptionRequest"
23670+
}
23671+
}
23672+
},
23673+
"required": true
23674+
},
23675+
"security": [
23676+
{
23677+
"cookieAuth": []
23678+
},
23679+
{
23680+
"basicAuth": []
23681+
},
23682+
{
23683+
"tokenAuth": []
23684+
}
23685+
],
23686+
"responses": {
23687+
"201": {
23688+
"content": {
23689+
"application/json": {
23690+
"schema": {
23691+
"$ref": "#/components/schemas/Note"
23692+
}
23693+
}
23694+
},
23695+
"description": ""
23696+
}
23697+
}
23698+
}
23699+
},
2359623700
"/api/v2/roles/": {
2359723701
"get": {
2359823702
"operationId": "roles_list",
@@ -31458,6 +31562,10 @@
3145831562
"type": "string"
3145931563
}
3146031564
},
31565+
"active_finding_count": {
31566+
"type": "integer",
31567+
"readOnly": true
31568+
},
3146131569
"protocol": {
3146231570
"type": "string",
3146331571
"nullable": true,
@@ -31521,6 +31629,7 @@
3152131629
}
3152231630
},
3152331631
"required": [
31632+
"active_finding_count",
3152431633
"endpoint_params",
3152531634
"findings",
3152631635
"id"
@@ -47041,6 +47150,25 @@
4704147150
"owner"
4704247151
]
4704347152
},
47153+
"RiskAcceptanceToNotes": {
47154+
"type": "object",
47155+
"properties": {
47156+
"risk_acceptance_id": {
47157+
"type": "integer",
47158+
"nullable": true
47159+
},
47160+
"notes": {
47161+
"type": "array",
47162+
"items": {
47163+
"$ref": "#/components/schemas/Note"
47164+
}
47165+
}
47166+
},
47167+
"required": [
47168+
"notes",
47169+
"risk_acceptance_id"
47170+
]
47171+
},
4704447172
"Role": {
4704547173
"type": "object",
4704647174
"properties": {

0 commit comments

Comments
 (0)