Fork me on GitHub
#portkey
<
2018-05-21
>
baptiste-from-paris14:05:44

for info, digging into shape-usage for splitting spec checks and conforming

baptiste-from-paris15:05:12

@cgrand, can you remember if you were generating req ser resp deser specs ? gen-operation not working at my place

baptiste-from-paris17:05:24

so, from what I understand

baptiste-from-paris17:05:37

1) remove all conforming from spec generation

baptiste-from-paris17:05:15

2) keep spec generation as it is

baptiste-from-paris17:05:16

3) on fn generation, add ser-* which are protocol dependent BUT platform independent (replace conforms)

baptiste-from-paris17:05:06

4) fn make the request protocol and platforrm dependent

baptiste-from-paris17:05:19

5) resp deserialization

baptiste-from-paris17:05:14

I don’t see how the req-* resp*` are working as we only need to serialize once and then make the request based on the protocol, not the fn

baptiste-from-paris18:05:40

I don’t get why you are building the vars =>

baptiste-from-paris18:05:49

vars (map (comp symbol portkey.aws/dashed)
                   (concat (map #(str "ser-" %) inputs) (map #(str "req<-" %) input-roots)
                     (map #(str "deser-" %) outputs) (map #(str "resp->" %) output-roots)))

cgrand20:05:01

req ser resp deser are not specs but functions, and they are not generated at the moment. Vars are created beforehand to be declared (because cycles may happen).