Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PIE-1804] Tweak JSON import format #1878

Merged
merged 2 commits into from
Aug 22, 2019

Conversation

mbaxter
Copy link
Contributor

@mbaxter mbaxter commented Aug 22, 2019

PR description

This PR makes a few small changes to the JSON import format:

  • Allow "comment" fields for documentation
  • Use "secretKey" as the field name for private keys to match the reference test json format

import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties("comment")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would @JsonIgnoreProperties(ignoreUnknown=true) work here? Or are you only explicitly wanting to allow the comment field?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would work, but I think it's better to explicitly ignore. That way, it will be obvious if some optional field is misspelled or something.

@mbaxter mbaxter merged commit 5992427 into PegaSysEng:master Aug 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants