Skip to content
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

Remove allOf to reference EventInput in /event endpoint #256

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

julienbourdeau
Copy link
Contributor

@julienbourdeau julienbourdeau commented Jul 31, 2024

Following #249 I'm removing the allOf to refer to the EventInputObject schema in EventInput.

Today, the batch EventBatchInput has the complete definition of an event, while the EventInput references #/components/schemas/EventBatchInput/properties/events/items.

This PR changes so EventInput has the definition of an event and EventBatchInput references it.

"What's the difference" you're asking. I dunno but I'm hoping it's going to make a difference for openapi-generator when generating client. Also, it feels a little better.

Note: make sure you expend the diff of openapi.yaml

@julienbourdeau julienbourdeau self-assigned this Jul 31, 2024
@julienbourdeau julienbourdeau changed the title Remove allOf to referecen EventInput in /event endpoint Remove allOf to reference EventInput in /event endpoint Jul 31, 2024
@julienbourdeau julienbourdeau merged commit c919d76 into main Jul 31, 2024
3 checks passed
@julienbourdeau julienbourdeau deleted the feat/event-ref branch July 31, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants