Last active
May 3, 2020 09:48
-
-
Save supermanue/b0c5cd35e567fa917abf0ed252ebcd65 to your computer and use it in GitHub Desktop.
refined_5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class UserInput(name: String, namespace: String) | |
def updateVersion(input: UserInput): UserInput = { | |
val lastVersion: Int = getLatestVersion(name, namespace) | |
val schemaToStore: Schema = InputToSchemaIso.get((userInput, lastVersion + 1)) | |
val result: Schema = store(schemaToStore) | |
return InputToSchemaIso.reverseGet(result) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment