From 1c54cfb67d9d623285eb2bfaebf1539f1fd2e784 Mon Sep 17 00:00:00 2001 From: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> Date: Thu, 20 Jun 2024 09:32:58 -0700 Subject: [PATCH] Add deprecated field to supported fields (#875) * Add deprecated field to supported fields * Update spec/spec.go Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com> --------- Co-authored-by: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com> --- spec/spec.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/spec.go b/spec/spec.go index 1f90048c..d99e32c1 100644 --- a/spec/spec.go +++ b/spec/spec.go @@ -85,6 +85,9 @@ var supportedSchemaFields = []string{ "x-stripeOperations", "x-stripeParam", "x-stripeEvent", + // This isn't used in our SDK, but is additional metadata unnecessary for + // stripe-mock. + "deprecated", // This is currently a hint for the server-side so I haven't included it in // Schema yet. If we do start validating responses that come out of