10000 Make version optional in medication scheme generation by aduchate · Pull Request #92 · icure/kmehr-module · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make version optional in medication scheme generation #92

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aduchate
Copy link
Contributor

No description provided.

@aduchate aduchate requested a review from TestaDiRapa November 28, 2024 10:49
@@ -435,7 +435,7 @@ class KmehrController(
@PathVariable patientId: String,
@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
0