Skip to content

Commit f2e6a7d

Browse files
committedSep 6, 2024·
Automatically updated the core API OpenAPI definition.
1 parent 624a8e4 commit f2e6a7d

File tree

1 file changed

+32
-19
lines changed
  • app/src/main/resources-unfiltered/META-INF/resources/api-specifications/registry/v3

1 file changed

+32
-19
lines changed
 

‎app/src/main/resources-unfiltered/META-INF/resources/api-specifications/registry/v3/openapi.json

+32-19
Original file line numberDiff line numberDiff line change
@@ -3373,32 +3373,45 @@
33733373
"config": "FULL"
33743374
}
33753375
},
3376-
"Error": {
3376+
"ProblemDetails": {
33773377
"title": "Root Type for Error",
33783378
"description": "All error responses, whether `4xx` or `5xx` will include one of these as the response\nbody.",
3379+
"required": [
3380+
"title",
3381+
"status"
3382+
],
33793383
"type": "object",
33803384
"properties": {
3381-
"message": {
3382-
"description": "The short error message.",
3385+
"detail": {
3386+
"description": "A human-readable explanation specific to this occurrence of the problem.",
33833387
"type": "string"
33843388
},
3385-
"error_code": {
3389+
"type": {
3390+
"description": "A URI reference [RFC3986] that identifies the problem type.",
3391+
"type": "string"
3392+
},
3393+
"title": {
3394+
"description": "A short, human-readable summary of the problem type.",
3395+
"type": "string"
3396+
},
3397+
"status": {
33863398
"format": "int32",
3387-
"description": "The server-side error code.",
3399+
"description": "The HTTP status code.",
33883400
"type": "integer"
33893401
},
3390-
"detail": {
3391-
"description": "Full details about the error. This might contain a server stack trace, for example.",
3402+
"instance": {
3403+
"description": "A URI reference that identifies the specific occurrence of the problem.",
33923404
"type": "string"
33933405
},
33943406
"name": {
3395-
"description": "The error name - typically the classname of the exception thrown by the server.",
3407+
"description": "The name of the error (typically a server exception class name).",
33963408
"type": "string"
33973409
}
33983410
},
33993411
"example": {
3400-
"error_code": 500,
3401-
"message": "An error occurred somewhere."
3412+
"status": 500,
3413+
"name": "NullPointerException",
3414+
"title": "An error occurred somewhere."
34023415
}
34033416
},
34043417
"RuleType": {
@@ -3935,7 +3948,7 @@
39353948
"contentId": 62
39363949
}
39373950
},
3938-
"RuleViolationError": {
3951+
"RuleViolationProblemDetails": {
39393952
"title": "Root Type for Error",
39403953
"description": "All error responses, whether `4xx` or `5xx` will include one of these as the response\nbody.",
39413954
"type": "object",
@@ -3956,7 +3969,7 @@
39563969
}
39573970
},
39583971
{
3959-
"$ref": "#/components/schemas/Error"
3972+
"$ref": "#/components/schemas/ProblemDetails"
39603973
}
39613974
],
39623975
"example": {
@@ -3973,7 +3986,7 @@
39733986
}
39743987
]
39753988
},
3976-
"x-codegen-extendsClass": "io.apicurio.registry.rest.v3.beans.Error"
3989+
"x-codegen-extendsClass": "io.apicurio.registry.rest.v3.beans.ProblemDetails"
39773990
},
39783991
"ArtifactReference": {
39793992
"title": "Root Type for ArtifactReference",
@@ -5111,7 +5124,7 @@
51115124
"content": {
51125125
"application/json": {
51135126
"schema": {
5114-
"$ref": "#/components/schemas/Error"
5127+
"$ref": "#/components/schemas/ProblemDetails"
51155128
},
51165129
"examples": {
51175130
"NotFoundExample": {
@@ -5129,7 +5142,7 @@
51295142
"content": {
51305143
"application/json": {
51315144
"schema": {
5132-
"$ref": "#/components/schemas/Error"
5145+
"$ref": "#/components/schemas/ProblemDetails"
51335146
},
51345147
"examples": {
51355148
"MethodNotAllowedExample": {
@@ -5147,7 +5160,7 @@
51475160
"content": {
51485161
"application/json": {
51495162
"schema": {
5150-
"$ref": "#/components/schemas/Error"
5163+
"$ref": "#/components/schemas/ProblemDetails"
51515164
},
51525165
"examples": {
51535166
"ErrorExample": {
@@ -5165,7 +5178,7 @@
51655178
"content": {
51665179
"application/json": {
51675180
"schema": {
5168-
"$ref": "#/components/schemas/Error"
5181+
"$ref": "#/components/schemas/ProblemDetails"
51695182
}
51705183
}
51715184
},
@@ -5175,7 +5188,7 @@
51755188
"content": {
51765189
"application/json": {
51775190
"schema": {
5178-
"$ref": "#/components/schemas/Error"
5191+
"$ref": "#/components/schemas/ProblemDetails"
51795192
},
51805193
"examples": {
51815194
"ConflictExample": {
@@ -5193,7 +5206,7 @@
51935206
"content": {
51945207
"application/json": {
51955208
"schema": {
5196-
"$ref": "#/components/schemas/RuleViolationError"
5209+
"$ref": "#/components/schemas/RuleViolationProblemDetails"
51975210
},
51985211
"examples": {
51995212
"RuleViolationConflictExample": {

0 commit comments

Comments
 (0)
Please sign in to comment.