-
Notifications
You must be signed in to change notification settings - Fork 74
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
refactor(api): notification event payload #1239
Conversation
29e9c3a
to
a8c62d3
Compare
$ref: "#/components/schemas/Feature" | ||
subject: | ||
$ref: "#/components/schemas/Subject" | ||
balance: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't there a balance type, EntitlementValue
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I was kinda hasitant to use EntitlementValue
directly as it is shared across all the entitlement types meaning it has fields for all teh entitlement types while we only need metered
here. So it might be confusing for users to see optinal fields in the spec which will be never used for entitlements.balance.threshold
payload.
It would be awesome to have entitlement specific Entitlement[Metered|Static|Boolean]Value
resources in the spec to support better reusability, but making this type of change out of scope for this PR.
So I am ok with using EntitlementValue
here, but I'd improve on this at some point to make the API spec more clean.
Add type specification for notification event payload instead of keeping it as a free form object.
a8c62d3
to
05dde5b
Compare
Overview
Add notification event type playload to the OepnAPI specification. Currently only payload for notifications with
entitlements.balance.threshold
type is supported.