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

Fjern overflødig strengverdi i enum for json-nøkler #796

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

bjerga
Copy link
Contributor

@bjerga bjerga commented Nov 27, 2024

Med strengene så hadde vi en slags dobbel definisjon. Nå som vi sammenstilt strengverdi med enumnavn de fleste tilfellene, så kan vi kvitte oss med den unødvendige strengen.

@bjerga bjerga requested a review from a team as a code owner November 27, 2024 10:24
Copy link
Contributor

@magnusae magnusae left a comment

Choose a reason for hiding this comment

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

Comment on lines +34 to +38
BEHOV -> "@behov"
LOESNING -> "@løsning"
FORESPOERSEL_ID -> "forespoerselId"
SPINN_INNTEKTSMELDING_ID -> "spinnInntektsmeldingId"
else -> name.lowercase()
Copy link
Contributor

Choose a reason for hiding this comment

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

Luring den her 😅

Er det noen av disse vi klarer å bytte ut også, eller er camel case og krøllalfa-case så hardt innarbeidet på andre siden av Pri at det ikke er noe poeng?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Vi kan egentlig endre alle. Vi må bare gidde å gjøre jobben.

Comment on lines +55 to +56
EVENT_NAME -> "@event_name"
BEHOV -> "@behov"
Copy link
Contributor

Choose a reason for hiding this comment

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

Hva signaliserer alfakrøllen i nøklene egentlig? At det er rapids and rivers-nøkler?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RR-nøklene bruker @-prefixen, og disse to er innarbeidede nøkler. Vi startet å bruke dem, men har siden den gang ikke hatt noe særlig forhold til den "standarden". Vi kan nok endre disse også, men det er noen funksjoner i bomlo-cli som støtter "@event_name" out of the box, som vi da må fikse litt på for at det skal fungere.

@bjerga bjerga merged commit 555704e into main Nov 27, 2024
74 checks passed
@bjerga bjerga deleted the dev/stringless-key branch November 27, 2024 12:11
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