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

Add DTO suffix to api types #559

Merged
merged 2 commits into from
Dec 10, 2024
Merged

Add DTO suffix to api types #559

merged 2 commits into from
Dec 10, 2024

Conversation

jnatten
Copy link
Contributor

@jnatten jnatten commented Dec 10, 2024

Jeg syns det har blitt vanskeligere å ha kontroll på importene våre etter vi begynte å bruke common og tilsvarende pakker siden vi ikke bare kan importere api og bruke api.Article feks.

Derfor foreslår jeg at api-typene våre kan ha et DTO suffix for å slippe å ha samme navn på typer så mange steder.

@jnatten jnatten requested a review from a team December 10, 2024 10:49
@gunnarvelle
Copy link
Member

Ganske så breaking, så blir i tilfelle v2 på backend-types

@jnatten jnatten force-pushed the api-type-naming branch 2 times, most recently from 5b15973 to 508982c Compare December 10, 2024 11:21
@jnatten
Copy link
Contributor Author

jnatten commented Dec 10, 2024

Ganske så breaking, så blir i tilfelle v2 på backend-types

Tja, vi er under v1 da https://semver.org/#spec-item-4
Men kanskje gå til 1.0.0 🤓

@jnatten jnatten force-pushed the api-type-naming branch 2 times, most recently from dde75eb to a25b03e Compare December 10, 2024 11:29
Copy link
Member

@gunnarvelle gunnarvelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM men fint om frontenderne er enige

@jnatten
Copy link
Contributor Author

jnatten commented Dec 10, 2024

LGTM men fint om frontenderne er enige

Det er de og jeg starter å fikse nu 👍

@jnatten jnatten merged commit 02ca84e into master Dec 10, 2024
39 checks passed
@jnatten jnatten deleted the api-type-naming branch December 10, 2024 12:26
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