Skip to content

Style JSON code with comments? #854

Discussion options

You must be logged in to vote

Adding additional elements like "comments" in any object of the style should work, at least when the style is manually placed in the "api-resources" folder.

However, when the style is accessed via the API, the "comments" member will no longer be included. The same is true, if a style is created/replaced via the API using POST/PUT. The reason is that for validation and security purposes the style content is de-serialized into a Java object following the style schema - and that does not include "comments" members.

If the styles are not submitted via the API and the comments are only for those editing the styles, would adding additional members as needed work for your use case? If not, in wh…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Sverre-Iversen
Comment options

Comment options

You must be logged in to vote
1 reply
@Sverre-Iversen
Comment options

Answer selected by Sverre-Iversen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants