This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-10
Channels
- # announcements (5)
- # aws (18)
- # babashka (1)
- # beginners (81)
- # calva (7)
- # chlorine-clover (1)
- # cider (5)
- # cljs-dev (8)
- # clojure (125)
- # clojure-dev (1)
- # clojure-europe (31)
- # clojure-italy (3)
- # clojure-nl (2)
- # clojure-norway (1)
- # clojure-spec (5)
- # clojure-sweden (1)
- # clojure-uk (31)
- # clojurescript (85)
- # code-reviews (1)
- # core-async (17)
- # cursive (39)
- # datomic (16)
- # emacs (1)
- # fulcro (6)
- # java (16)
- # kaocha (2)
- # luminus (4)
- # malli (2)
- # off-topic (65)
- # pathom (3)
- # re-frame (11)
- # reagent (5)
- # remote-jobs (1)
- # rum (5)
- # sci (10)
- # shadow-cljs (24)
- # spacemacs (4)
- # test-check (3)
- # tools-deps (22)
- # xtdb (15)
I'm using aws-api with MediaConvert. After using aws/validate-requests
, I get an error:
{ ...
:path
[:Settings
:OutputGroups
:OutputGroupSettings
:FileGroupSettings
:Destination],
:pred
(clojure.core/fn
[%]
(clojure.core/re-matches (clojure.core/re-pattern "^s3:\\/\\/") %)),
:val " "
...
}
The :Destination
value here will only match the string "s3://". However, this is https://docs.aws.amazon.com/mediaconvert/latest/ug/specify-output-groups.html. I can use MediaConvert (outside aws-api
) with the rejected value and it works. Is this likely a bug or might I be overlooking something?:CreateJob
(most regexes in the APIs descriptors have ^ and $ anchors, but not this one for :CreateJob
)
as a workaround you could maybe redefine the spec to be a little looser @thomas559
heh that name "__stringPatternArnAwsUsGovCnKmsAZ26EastWestCentralNorthSouthEastWest1912D12KeyAFAF098AFAF094AFAF094AFAF094AFAF0912"
Thanks, @ghadi. I'll file the issue. The spec part is a little opaque to me (not spec as a library, just where they are being defined by aws-api
), but I'll take a look and see if I can figure it out.
The specs are mechanically generated @thomas559
That's the part where I get lost a little, since normally I'd look for a spec (e.g., :a/b
) in the source and override it. Here I'm not sure where to look for the name
Thanks, I was able to redefine the spec. In general, having the validation function is enormously useful for something like MediaConvert where the request can be a really big map.