Skip to content

Commit

Permalink
fix: swagger lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: DaevMithran <[email protected]>
  • Loading branch information
DaevMithran committed Oct 18, 2022
1 parent a30f0e9 commit b76a31c
Showing 1 changed file with 20 additions and 41 deletions.
61 changes: 20 additions & 41 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,22 +155,13 @@
"example": "null"
},
"options": {
"description": "This input field contains an object with various options for the DID create operation, such as the network where the DID should be created. See <a href=\"https://identity.foundation/did-registration/#options\">https://identity.foundation/did-registration/#options</a>.",
"$ref": "#/components/schemas/Options",
"example": {
"network": "testnet"
}
"$ref": "#/components/schemas/Options"
},
"secret": {
"description": "This input field contains an object with DID controller keys and other secrets needed for performing the DID create operation. See <a href=\"https://identity.foundation/did-registration/#secret\">https://identity.foundation/did-registration/#secret</a>.",
"$ref": "#/components/schemas/Secret",
"example": {
"seed": "72WGp7NgFR1Oqdi8zlt7jQQ434XR0cNQ"
}
"$ref": "#/components/schemas/Secret"
},
"didDocument": {
"description": "This input field contains either a complete DID document, or an incremental change (diff) to a DID document. See <a href=\"https://identity.foundation/did-registration/#diddocument\">https://identity.foundation/did-registration/#diddocument</a>.",
"type": "object"
"$ref": "#/components/schemas/DidDocument"
}
}
},
Expand All @@ -193,49 +184,32 @@
"example": "did:cheqd:testnet:zApY6E8Prv1rWcjRtBKENGaVm2kRk1VQ"
},
"options": {
"description": "This input field contains an object with various options for the DID update operation. See <a href=\"https://identity.foundation/did-registration/#options\">https://identity.foundation/did-registration/#options</a>.",
"$ref": "#/components/schemas/Options",
"example": {
"network": "testnet"
}
"$ref": "#/components/schemas/Options"
},
"secret": {
"description": "This input field contains an object with DID controller keys and other secrets needed for performing the DID update operation. See <a href=\"https://identity.foundation/did-registration/#secret\">https://identity.foundation/did-registration/#secret</a>.",
"$ref": "#/components/schemas/Secret",
"example": {
"keys": [
{
"publicKey": "",
"privateKey": ""
}
]
}
"$ref": "#/components/schemas/Secret"
},
"didDocumentOperation": {
"description": "This input field indicates which update operation should be applied to a DID’s associated DID document. See <a href=\"https://identity.foundation/did-registration/#diddocumentoperation\">https://identity.foundation/did-registration/#diddocumentoperation</a>.",
"type": "array",
"items": {
"type": "string",
"example": [
"addToDidDocument"
]
}
"type": "string"
},
"example": ["addToDidDocument", "removeFromDidDocument"]
},
"didDocument": {
"description": "This input field contains either a complete DID document, or an incremental change (diff) to a DID document. See <a href=\"https://identity.foundation/did-registration/#diddocument\">https://identity.foundation/did-registration/#diddocument</a>.",
"type": "array",
"items": {
"type": "object"
"$ref": "#/components/schemas/DidDocument"
},
"example": {
"example": [{
"service": [
{
"id": "did:cheqd:testnet:zApY6E8Prv1rWcjRtBKENGaVm2kRk1VQ#rand",
"type": "rand",
"serviceEndpoint": "https://rand.in"
}
]
}
}]
}
}
},
Expand All @@ -258,11 +232,9 @@
"example": "did:cheqd:testnet:zApY6E8Prv1rWcjRtBKENGaVm2kRk1VQ"
},
"options": {
"description": "This input field contains an object with various options for the DID deactivate operation. See <a href=\"https://identity.foundation/did-registration/#options\">https://identity.foundation/did-registration/#options</a>.",
"$ref": "#/components/schemas/Options"
},
"secret": {
"description": "This input field contains an object with DID controller keys and other secrets needed for performing the DID deactivate operation. See <a href=\"https://identity.foundation/did-registration/#secret\">https://identity.foundation/did-registration/#secret</a>.",
"$ref": "#/components/schemas/Secret"
}
}
Expand Down Expand Up @@ -391,10 +363,12 @@
}
},
"Secret": {
"description": "This input field contains an object with DID controller keys and other secrets needed for performing the DID deactivate operation. See <a href=\"https://identity.foundation/did-registration/#secret\">https://identity.foundation/did-registration/#secret</a>.",
"type": "object",
"properties": {
"seed": {
"type": "string"
"type": "string",
"example": "72WGp7NgFR1Oqdi8zlt7jQQ434XR0cNQ"
},
"keys": {
"type": "array",
Expand All @@ -405,11 +379,15 @@
}
},
"Options": {
"description": "This input field contains an object with various options for the DID create operation, such as the network where the DID should be created. See <a href=\"https://identity.foundation/did-registration/#options\">https://identity.foundation/did-registration/#options</a>.",
"type": "object",
"properties": {
"network": {
"type": "string"
}
},
"example": {
"network": "testnet"
}
},
"KeyPair": {
Expand All @@ -424,6 +402,7 @@
}
},
"DidDocument": {
"description": "This input field contains either a complete DID document, or an incremental change (diff) to a DID document. See <a href=\"https://identity.foundation/did-registration/#diddocument\">https://identity.foundation/did-registration/#diddocument</a>.",
"type": "object",
"properties": {
"context": {
Expand Down Expand Up @@ -493,7 +472,7 @@
"service": {
"type": "array",
"items": {
"type": "string"
"type": "object"
}
}
}
Expand Down

0 comments on commit b76a31c

Please sign in to comment.