Closed mxinden closed 7 years ago
@ahultgren Porting my fix to new structure as discussed in PR #12. I will test it more tomorrow. Works with a new integration test already.
Let me know what you think. Hope there is not a 'rewrite everything 2' :-P
@ahultgren Thanks for the review. I will look into it tomorrow. Was definitely easier the second time - good work!
@ahultgren Addressed all your comments. Let me know what you think.
Awesome! Looks good 👍
According to the [Swagger specification] (http://swagger.io/specification/#model-with-map-dictionary-properties-88) a dict is defined by the following json:
This PR checks if the field
additionalProperties
is defined andproperties
is undefined. If so, it interprets it as a dict, otherwise as an object as usual. It will use the nested fieldtype
as the second type of the Elm dictionary. The above example would result in a dictionaryDict String String
with a decoderdict string
.Related to issue #10, related to PR #12, and Alertmanager PR