Skip to content

Commit

Permalink
feat: Add linted swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Dec 2, 2022
1 parent 2fe76ff commit ce35f07
Show file tree
Hide file tree
Showing 5 changed files with 1,065 additions and 26 deletions.
19 changes: 3 additions & 16 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const docTemplate = `{
"parameters": [
{
"type": "string",
"example": "did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1JXfUY7oVWkY",
"description": "DID Doc Id",
"name": "did",
"in": "path",
Expand Down Expand Up @@ -97,18 +96,12 @@ const docTemplate = `{
"parameters": [
{
"type": "string",
"example": "did:cheqd:testnet:MjYxNzYKMjYxNzYK",
"description": "Resource collection id. DID Doc Id",
"name": "did",
"in": "path",
"required": true
},
{
"enum": [
"application/did+ld+json",
"application/ld+json",
"application/did+json"
],
"type": "string",
"description": "The requested media type of the DID document representation or DID resolution result. ",
"name": "accept",
Expand Down Expand Up @@ -162,15 +155,13 @@ const docTemplate = `{
"parameters": [
{
"type": "string",
"example": "did:cheqd:testnet:MjYxNzYKMjYxNzYK",
"description": "Resource collection id. DID Doc Id",
"name": "did",
"in": "path",
"required": true
},
{
"type": "string",
"example": "60ad67be-b65b-40b8-b2f4-3923141ef382",
"description": "DID Resource identifier",
"name": "resourceId",
"in": "path",
Expand Down Expand Up @@ -238,16 +229,14 @@ const docTemplate = `{
"parameters": [
{
"type": "string",
"example": "did:cheqd:testnet:MjYxNzYKMjYxNzYK",
"description": "Resource collection id. DID Doc Id",
"name": "did",
"in": "path",
"required": true
},
{
"type": "string",
"example": "60ad67be-b65b-40b8-b2f4-3923141ef382",
"description": "DID Resource identifier",
"description": "Resource identifier",
"name": "resourceId",
"in": "path",
"required": true
Expand Down Expand Up @@ -318,22 +307,20 @@ const docTemplate = `{
"parameters": [
{
"type": "string",
"example": "did:cheqd:mainnet:zF7rhDBfUt9d1gJPjx7s1JXfUY7oVWkY",
"description": "DID Doc Id",
"name": "did",
"in": "path",
"required": true
},
{
"type": "string",
"example": "#key1",
"description": "` + "`" + `#` + "`" + ` + DID Doc Verification Method or Service identifier",
"name": "fragmentId",
"in": "path"
"in": "path",
"required": true
},
{
"type": "string",
"example": "\"service1\"",
"description": "Service id",
"name": "service",
"in": "query"
Expand Down
Loading

0 comments on commit ce35f07

Please sign in to comment.