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

Bort fra data class i API - take2 #1351

Open
wants to merge 22 commits into
base: main
Choose a base branch
from
Open

Bort fra data class i API - take2 #1351

wants to merge 22 commits into from

Conversation

madsop-nav
Copy link
Contributor

No description provided.

@@ -78,8 +93,15 @@ sealed class UnaryOperation<In, out Out> : Operation() {
}

abstract class BinaryOperation<in In1, in In2, out Out>(val doc: Documentation? = null) : Operation() {
data class Documentation(val name: String, val syntax: Notation) {
class Documentation @InternKonstruktoer constructor(val name: String, val syntax: Notation) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Jeg lurer på om akkuratt denne klassen burde ha public konstruktør. Om vi skal oppfordre til tilpasning av brevbaker gjennom operasjoner.

import no.nav.pensjon.brev.template.dsl.textExpr
import no.nav.pensjon.brevbaker.api.model.Kroner

data class KronerText(val kroner: Expression<Kroner>, val fontType: Element.OutlineContent.ParagraphContent.Text.FontType = Element.OutlineContent.ParagraphContent.Text.FontType.PLAIN) :
Copy link
Contributor

Choose a reason for hiding this comment

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

Er denne flyttet fordi det kun er etterlatte som bruker den?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nei, brukast også i pensjonsmaler. Men det kjentes litt rart og inkonsekvent at dette var den einaste frasa vi hadde i biblioteket, så da trur eg det er betre å duplisere.

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