Skip to content

Commit

Permalink
fix swagger doc for credential and claim
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartf committed Apr 12, 2023
1 parent f14daae commit ff377a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/apimodels/credential.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ export class CredentialPostModel {
@ApiModelProperty({
required: true,
})
template!: Record<string, unknown>;
templatePath!: string;

@ApiModelProperty({
required: true,
})
templateValues!: Record<string, unknown>;

@ApiModelProperty({
required: true,
Expand Down
3 changes: 2 additions & 1 deletion src/routes/Claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import config from "../config";
import type { Readable } from "stream";

@ApiPath({
path: "/api/claim/{awardId}",
path: "/api/claim/",
name: "Claim",
})
export class ClaimRouter {
Expand All @@ -40,6 +40,7 @@ export class ClaimRouter {
@ApiOperationGet({
description: "Claim an issued credential",
summary: "Claim an issued credential",
path: "{recipientId}/{issuanceId}",
parameters: {
path: {
recipientId: {
Expand Down

0 comments on commit ff377a7

Please sign in to comment.