Skip to content

Commit

Permalink
Apply some linting fix to the ProblemDetails schema
Browse files Browse the repository at this point in the history
Signed-off-by: pstlouis <patrick.st-louis@opsecid.ca>
  • Loading branch information
PatStLouis committed Oct 8, 2024
1 parent 609b5da commit d969201
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
20 changes: 11 additions & 9 deletions components/ProblemDetails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@ paths:
components:
schemas:
ProblemDetails:
type:
type: string
description: URL identifying the type of problem.
title:
type: string
description: Short but specific human-readable string for the problem.
detail:
type: string
description: Longer human-readable string for the problem.
type: object
properties:
type:
type: string
description: URL identifying the type of problem.
title:
type: string
description: Short but specific human-readable string for the problem.
detail:
type: string
description: Longer human-readable string for the problem.
example: {
"type": "https://www.w3.org/TR/vc-data-model#PARSING_ERROR",
"title": "PARSING_ERROR",
Expand Down
11 changes: 8 additions & 3 deletions components/VerifyCredentialResult.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ components:
type: array
description: Array consisting of ProblemDetails objects.
items:
$ref: "./ProblemDetails.yml#/schemas/ProblemDetails"
$ref: "./ProblemDetails.yml#/components/schemas/ProblemDetails"
results:
type: object
additionalProperties: false
Expand Down Expand Up @@ -96,9 +96,14 @@ components:
type: object
description: The proof object.
example: {
"verified": True,
"verified": false,
"credential": {},
"problemDetails": [],
"problemDetails": [
{
"title": "PARSING_ERROR",
"type": "https://www.w3.org/TR/vc-data-model#PARSING_ERROR "
}
],
"results": {
"validFrom": [],
"validUntil": [],
Expand Down

0 comments on commit d969201

Please sign in to comment.