|
3373 | 3373 | "config": "FULL"
|
3374 | 3374 | }
|
3375 | 3375 | },
|
3376 |
| - "Error": { |
| 3376 | + "ProblemDetails": { |
3377 | 3377 | "title": "Root Type for Error",
|
3378 | 3378 | "description": "All error responses, whether `4xx` or `5xx` will include one of these as the response\nbody.",
|
| 3379 | + "required": [ |
| 3380 | + "title", |
| 3381 | + "status" |
| 3382 | + ], |
3379 | 3383 | "type": "object",
|
3380 | 3384 | "properties": {
|
3381 |
| - "message": { |
3382 |
| - "description": "The short error message.", |
| 3385 | + "detail": { |
| 3386 | + "description": "A human-readable explanation specific to this occurrence of the problem.", |
3383 | 3387 | "type": "string"
|
3384 | 3388 | },
|
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": { |
3386 | 3398 | "format": "int32",
|
3387 |
| - "description": "The server-side error code.", |
| 3399 | + "description": "The HTTP status code.", |
3388 | 3400 | "type": "integer"
|
3389 | 3401 | },
|
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.", |
3392 | 3404 | "type": "string"
|
3393 | 3405 | },
|
3394 | 3406 | "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).", |
3396 | 3408 | "type": "string"
|
3397 | 3409 | }
|
3398 | 3410 | },
|
3399 | 3411 | "example": {
|
3400 |
| - "error_code": 500, |
3401 |
| - "message": "An error occurred somewhere." |
| 3412 | + "status": 500, |
| 3413 | + "name": "NullPointerException", |
| 3414 | + "title": "An error occurred somewhere." |
3402 | 3415 | }
|
3403 | 3416 | },
|
3404 | 3417 | "RuleType": {
|
|
3935 | 3948 | "contentId": 62
|
3936 | 3949 | }
|
3937 | 3950 | },
|
3938 |
| - "RuleViolationError": { |
| 3951 | + "RuleViolationProblemDetails": { |
3939 | 3952 | "title": "Root Type for Error",
|
3940 | 3953 | "description": "All error responses, whether `4xx` or `5xx` will include one of these as the response\nbody.",
|
3941 | 3954 | "type": "object",
|
|
3956 | 3969 | }
|
3957 | 3970 | },
|
3958 | 3971 | {
|
3959 |
| - "$ref": "#/components/schemas/Error" |
| 3972 | + "$ref": "#/components/schemas/ProblemDetails" |
3960 | 3973 | }
|
3961 | 3974 | ],
|
3962 | 3975 | "example": {
|
|
3973 | 3986 | }
|
3974 | 3987 | ]
|
3975 | 3988 | },
|
3976 |
| - "x-codegen-extendsClass": "io.apicurio.registry.rest.v3.beans.Error" |
| 3989 | + "x-codegen-extendsClass": "io.apicurio.registry.rest.v3.beans.ProblemDetails" |
3977 | 3990 | },
|
3978 | 3991 | "ArtifactReference": {
|
3979 | 3992 | "title": "Root Type for ArtifactReference",
|
|
5111 | 5124 | "content": {
|
5112 | 5125 | "application/json": {
|
5113 | 5126 | "schema": {
|
5114 |
| - "$ref": "#/components/schemas/Error" |
| 5127 | + "$ref": "#/components/schemas/ProblemDetails" |
5115 | 5128 | },
|
5116 | 5129 | "examples": {
|
5117 | 5130 | "NotFoundExample": {
|
|
5129 | 5142 | "content": {
|
5130 | 5143 | "application/json": {
|
5131 | 5144 | "schema": {
|
5132 |
| - "$ref": "#/components/schemas/Error" |
| 5145 | + "$ref": "#/components/schemas/ProblemDetails" |
5133 | 5146 | },
|
5134 | 5147 | "examples": {
|
5135 | 5148 | "MethodNotAllowedExample": {
|
|
5147 | 5160 | "content": {
|
5148 | 5161 | "application/json": {
|
5149 | 5162 | "schema": {
|
5150 |
| - "$ref": "#/components/schemas/Error" |
| 5163 | + "$ref": "#/components/schemas/ProblemDetails" |
5151 | 5164 | },
|
5152 | 5165 | "examples": {
|
5153 | 5166 | "ErrorExample": {
|
|
5165 | 5178 | "content": {
|
5166 | 5179 | "application/json": {
|
5167 | 5180 | "schema": {
|
5168 |
| - "$ref": "#/components/schemas/Error" |
| 5181 | + "$ref": "#/components/schemas/ProblemDetails" |
5169 | 5182 | }
|
5170 | 5183 | }
|
5171 | 5184 | },
|
|
5175 | 5188 | "content": {
|
5176 | 5189 | "application/json": {
|
5177 | 5190 | "schema": {
|
5178 |
| - "$ref": "#/components/schemas/Error" |
| 5191 | + "$ref": "#/components/schemas/ProblemDetails" |
5179 | 5192 | },
|
5180 | 5193 | "examples": {
|
5181 | 5194 | "ConflictExample": {
|
|
5193 | 5206 | "content": {
|
5194 | 5207 | "application/json": {
|
5195 | 5208 | "schema": {
|
5196 |
| - "$ref": "#/components/schemas/RuleViolationError" |
| 5209 | + "$ref": "#/components/schemas/RuleViolationProblemDetails" |
5197 | 5210 | },
|
5198 | 5211 | "examples": {
|
5199 | 5212 | "RuleViolationConflictExample": {
|
|
0 commit comments