-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow to add arbitrary values to PropertyBag
#101
Conversation
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifSerializer.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifDataBindings.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifSerializer.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifSerializer.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifSerializer.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifSerializer.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifSerializer.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifSerializer.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
Ok, I think that I fixed all the comments. Thanks for the reviews! And with the test that I added in the last commit it feels more secure. |
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.
Sorry, I guess I looked deeper now than previously? 😅
Note: I did the review on my phone because I'm sick in bed, so there might be some weird comments. 😵💫
src/commonMain/kotlin/io/github/detekt/sarif4k/JsonElementExtensions.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/JsonElementExtensions.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/JsonElementExtensions.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifDataBindings.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifDataBindings.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifDataBindings.kt
Outdated
Show resolved
Hide resolved
No need to apology! This review was great :) |
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifDataBindings.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifDataBindings.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/SarifDataBindings.kt
Outdated
Show resolved
Hide resolved
src/commonMain/kotlin/io/github/detekt/sarif4k/JsonElementExtensions.kt
Outdated
Show resolved
Hide resolved
…nsions.kt Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
…gs.kt Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
…gs.kt Co-authored-by: Róbert Papp <papp.robert.s@gmail.com>
Ok, I think that now it's ready |
Fix #78
I would like to get feedback from the API. I don't like too much thatPropertyBag
is now aMap<String, JsonElement>
because that couples us withkotlinx.serialization
. But I don't see other way to implement this:(Extracted from the specification: https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/sarif-v2.1.0-errata01-os-complete.html#_Toc141790698)Any feedback is more than welcomeI was facing this issue: Kotlin/kotlinx.serialization#296 so I needed to create those chunky functions. They are not bullet proof but they should do the job.