Skip to content

Commit

Permalink
Added JSON to the FileFormat enumeration
Browse files Browse the repository at this point in the history
  • Loading branch information
zubri committed Oct 10, 2023
1 parent c713f2f commit e23d96f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Prowide Core - CHANGELOG

#### 9.3.19-SNAPSHOT
* Added default methods for sender, receiver, and identifier extraction to the MessageExtractionStrategy.
* Added default methods for sender, receiver, and identifier extraction to the MessageExtractionStrategy
* Added JSON to the `FileFormat` enumeration

#### 9.3.18 - September 2023
* Added support for an optional `pw-swift-core.properties` to customize the behavior of the SafeXmlUtils class
Expand Down
13 changes: 7 additions & 6 deletions src/main/java/com/prowidesoftware/swift/model/FileFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
* @author sebastian
* @since 7.8.4
*/
/*
* sebastian aug 2016: annotate subclasses?
*/
public enum FileFormat {
/**
* SWIFT FIN message format
Expand All @@ -49,12 +46,16 @@ public enum FileFormat {
/**
* Applies to both MT and MX
*/
XML_V2("xml");
XML_V2("xml"),
/**
* Prowide default JSON formats for both MT and MX
*/
JSON("json");

private final String extension;

FileFormat(String _extension) {
extension = _extension;
FileFormat(String extension) {
this.extension = extension;
}

public String extension() {
Expand Down

0 comments on commit e23d96f

Please sign in to comment.