Skip to content

Make version optional in medication scheme generation#92

Open
aduchate wants to merge 1 commit intomainfrom
fix/make-version-optional-in-medicationscheme
Open

Make version optional in medication scheme generation#92
aduchate wants to merge 1 commit intomainfrom
fix/make-version-optional-in-medicationscheme

Conversation

@aduchate
Copy link
Contributor

No description provided.

@aduchate aduchate requested a review from TestaDiRapa November 28, 2024 10:49
@RequestParam language: String,
@RequestParam recipientSafe: String,
@RequestParam(defaultValue = "0") version: Int,
@RequestParam(required = false, defaultValue = "0") version: Int,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I read mattermost, if defaultValue is not recognized put it required false and not nullable may not work either.

Suggested change
@RequestParam(required = false, defaultValue = "0") version: Int,
@RequestParam(required = false, defaultValue = "0") version: Int = 0,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From what I remember "= 0" does not work. In every other instance we use @RequestParam(required = false, defaultValue = "0"). But you are right... Tests will be needed.

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.

3 participants