You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A json CE without required attributes can still pass the FromRequest, e.g. without id
data = { "specversion": "string", "datacontenttype": "string", "data": "Unknown Type: object,string", "data_base64": "string", "time": "2020-04-24T10:58:14.315Z", "dataschema": "string", "subject": "string", "type": "string", "source": "string" } marshaller.FromRequest( v1.Event(), dict(request.headers), io.StringIO(json.dumps(data)), lambda x: x )
meanwhile,
the v1.Event() doens't enforce the value of specversion in structured mode.
the data_base64 is put into extensions instead of treating as an optional attribute.
The text was updated successfully, but these errors were encountered:
A json CE without required attributes can still pass the
FromRequest
, e.g. withoutid
data = { "specversion": "string", "datacontenttype": "string", "data": "Unknown Type: object,string", "data_base64": "string", "time": "2020-04-24T10:58:14.315Z", "dataschema": "string", "subject": "string", "type": "string", "source": "string" } marshaller.FromRequest( v1.Event(), dict(request.headers), io.StringIO(json.dumps(data)), lambda x: x )
meanwhile,
the
v1.Event()
doens't enforce the value ofspecversion
in structured mode.the
data_base64
is put intoextensions
instead of treating as an optional attribute.The text was updated successfully, but these errors were encountered: