-
Notifications
You must be signed in to change notification settings - Fork 8
PropertyBag appears to be implemented different from its doc #78
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
Comments
Purely based on the name, it should be something like class PropertyBag(val tags: List<String>? = null) : HashMap<String, Any?> based on the schema (search for "propertyBag": {
"description": "Key/value pairs that provide additional information about the object.",
"type": "object",
"additionalProperties": true,
"properties": {
"tags": {
"description": "A set of distinct strings that provide additional information.",
"type": "array",
"minItems": 0,
"uniqueItems": true,
"default": [],
"items": {
"type": "string"
}
}
}
}, makes it a hash + |
I just ran into this as well while trying to adopt Sarif that GitHub supports. Without this being implemented, it's not possible to use some properties:
|
I implement this at #101 but I don't like the API. kotlinx.serialization doesn't allow to use |
Other option would be to expose But it is SO hacky... |
I end up implementing it the "hacky" way. |
@ZacSweers do you want to have a look at the public API changes in the PR? |
I just merged it but any feedback is still valuable to ensure that it correctly fulfill the needs. I'll try to generate a new release these week. |
Lgtm, thanks! |
The doc mentions it's a set of key-value pairs, but it only contains a list of strings
The text was updated successfully, but these errors were encountered: