Open TaroBill opened 3 weeks ago
Should the payload field be restricted to accept only JSON format strings? Version: [47ca8b6]
Create product
Publish events that contains not a json type payload
(Default usage: gravity-cli pub accountCreated '{"id":4,"name":"fred"}')
gravity-cli pub accountCreated '{"id":4,"name":"fred"}'
We can see that all of the invalid input is accept by gravity-cli. But we expect these will block by gravity-cli.
The following is Base64 decoded from nats.
This is related to the semantics expected/defined by the event processing flow of Gravity. @cfsghost @JheSue Does Gravity accept "any type of payloads"? Or, is it supposed only to accept the JSON-type payload?
Should the payload field be restricted to accept only JSON format strings? Version: [47ca8b6]
Reproduce:
Create product
Publish events that contains not a json type payload
(Default usage:
gravity-cli pub accountCreated '{"id":4,"name":"fred"}'
)We can see that all of the invalid input is accept by gravity-cli. But we expect these will block by gravity-cli.
The following is Base64 decoded from nats.