-
Notifications
You must be signed in to change notification settings - Fork 311
KTLN-746: Guide to Reading From a YAML File in Kotlin #830
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
KTLN-746: Guide to Reading From a YAML File in Kotlin #830
Conversation
9104d16
to
75ebf65
Compare
2ee9204
to
d5df022
Compare
919bc46
to
7e9dfdd
Compare
3166e69
to
79bafd9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Just a few minor points
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete extra newlines, just keep one blank one inbetween
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
kotlin-yaml/pom.xml
Outdated
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete newlines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
|
||
class YamlktUnitTest { | ||
|
||
private val yamlDefault = Yaml.Default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use a fully qualified import to make it clear which library we are importing from
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
|
||
class KamlUnitTest { | ||
|
||
private val yamlDefault = Yaml.default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use a fully qualified import to make it clear which library we are importing from
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@Test | ||
fun `Return float when parsing scalar float number in a yaml string using decodeFromString`() { | ||
val scalarFloatYamlStr = "12.3" | ||
val yaml = Yaml.default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use existing field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
e32bf56
to
32b8746
Compare
32b8746
to
9ab5e04
Compare
9ab5e04
to
4f0897f
Compare
@tapankavasthi going forwards can you try not to force push when possible, it's hard to review the diff versus the last time I reviewed the PR if the commit history is lost |
sure, @theangrydev. I wanted to keep the commit history clean, so had to squash the commits. Here is the diff, in case you want to double-check: |
Summary
Demonstrate reading YAML content in Kotlin
Jira
KTLN-746