Skip to content

Commit

Permalink
Documentation improvements. (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresuribe87 authored Jul 27, 2023
1 parent f836a81 commit b3ad6d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 6 additions & 5 deletions doc/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1935,9 +1935,9 @@ definitions:
properties:
applicationJwt:
description: |-
Contains the following properties:
Application manifestsdk.CredentialApplication `json:"credential_application" validate:"required"`
Credentials []interface{} `json:"vcs" validate:"required"`
A JWT signed by the applicant. The payload MUST contain the following properties:
- `credential_application`: an object of type manifest.CredentialApplication (specified in https://identity.foundation/credential-manifest/#credential-application).
- `vcs`: an array of Verifiable Credentials.
type: string
required:
- applicationJwt
Expand Down Expand Up @@ -3121,8 +3121,9 @@ paths:
put:
consumes:
- application/json
description: Submit a credential application in response to a credential manifest.
The request body is expected to
description: |-
Submit a credential application in response to a credential manifest. The request body is expected to
be a valid JWT signed by the applicant's DID, containing two top level properties: `credential_application` and `vcs`.
parameters:
- description: request body
in: body
Expand Down
10 changes: 4 additions & 6 deletions pkg/server/router/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ func (mr ManifestRouter) DeleteManifest(c *gin.Context) {
}

type SubmitApplicationRequest struct {
// Contains the following properties:
// Application manifestsdk.CredentialApplication `json:"credential_application" validate:"required"`
// Credentials []interface{} `json:"vcs" validate:"required"`
// A JWT signed by the applicant. The payload MUST contain the following properties:
// - `credential_application`: an object of type manifest.CredentialApplication (specified in https://identity.foundation/credential-manifest/#credential-application).
// - `vcs`: an array of Verifiable Credentials.
ApplicationJWT keyaccess.JWT `json:"applicationJwt" validate:"required"`
}

Expand Down Expand Up @@ -317,9 +317,7 @@ type SubmitApplicationResponse struct {
//
// @Summary Submit application
// @Description Submit a credential application in response to a credential manifest. The request body is expected to
//
// be a valid JWT signed by the applicant's DID, containing two top level properties: credential_application and vcs.
//
// @Description be a valid JWT signed by the applicant's DID, containing two top level properties: `credential_application` and `vcs`.
// @Tags ApplicationAPI
// @Accept json
// @Produce json
Expand Down

0 comments on commit b3ad6d1

Please sign in to comment.