Merge pull request #2654 from scott-ray-wilson/kms-doc-fix

Docs: Correct KMS API Docs for Decrypt Endpoint
This commit is contained in:
Scott Wilson
2024-10-28 11:18:43 -07:00
committed by GitHub
+2 -2
View File
@@ -293,10 +293,10 @@ export const registerCmekRouter = async (server: FastifyZodProvider) => {
schema: { schema: {
description: "Decrypt data with KMS key", description: "Decrypt data with KMS key",
params: z.object({ params: z.object({
keyId: z.string().uuid().describe(KMS.ENCRYPT.keyId) keyId: z.string().uuid().describe(KMS.DECRYPT.keyId)
}), }),
body: z.object({ body: z.object({
ciphertext: base64Schema.describe(KMS.ENCRYPT.plaintext) ciphertext: base64Schema.describe(KMS.DECRYPT.ciphertext)
}), }),
response: { response: {
200: z.object({ 200: z.object({