-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EventGridEvent ctor parameters are ordered inconsistently from other SDK languages #15476
Comments
/cc @rakshith91 @ellismg - what are Python/JS doing here? |
For JavaScript, we don't actually have an sendEvent({ data: {}, subject: "some subject", eventType: "sample", dataVersion: "1.0"); In this case, the order of the keys in the object is uninteresting, the above is identical to: sendEvent(subject: "some subject", eventType: "sample", { data: {}, dataVersion: "1.0"); |
@rakshith91 I assume Python is similar to JS here? |
@JoshLove-msft Python with it's
|
We will update to move the |
@JoshLove-msft
|
I think this was before @YijunXieMS pointed out the inconsistency between the CloudEvent and EventGridEvent ctors. Can we discuss again tomorrow? |
makes sense - agree with the inconsistency in both the Events - sure |
The Event Grid C# SDK's EventGridEvent public constructor has its parameters ordered differently from other language SDKs. We should probably address this inconsistency in an upcoming beta release:
EventGridEvent.cs#L26
EventGridEvent.java#L51
https://docs.microsoft.com/en-us/azure/event-grid/event-schema#event-properties
JSON schema ordering: subject, eventType, [data], [dataVersion]
The text was updated successfully, but these errors were encountered: