-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring including improved docstrings and imports
- Loading branch information
Showing
12 changed files
with
118 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,22 +17,20 @@ package common | |
package enrichments | ||
package registry | ||
|
||
import utils.ScalazJson4sUtils | ||
|
||
// Scalaz | ||
import scalaz._ | ||
import Scalaz._ | ||
|
||
// json4s | ||
import org.json4s.scalaz.JsonScalaz._ | ||
import org.json4s._ | ||
import org.json4s.JsonDSL._ | ||
import org.json4s.jackson.JsonMethods._ | ||
import org.json4s.JValue | ||
|
||
// Iglu | ||
import iglu.client._ | ||
import iglu.client.SchemaKey | ||
import iglu.client.validation.ProcessingMessageMethods._ | ||
|
||
// This project | ||
import utils.ScalazJson4sUtils | ||
|
||
/** | ||
* Trait inherited by every enrichment config case class | ||
*/ | ||
|
@@ -58,7 +56,7 @@ trait ParseableEnrichment { | |
if (schemaKey == supportedSchemaKey) { | ||
config.success | ||
} else { | ||
("Wrong type of JSON for an enrichment of type %").format(schemaKey.name).toProcessingMessage.fail.toValidationNel | ||
("Wrong type of JSON for an enrichment of type %s").format(schemaKey.name).toProcessingMessage.fail.toValidationNel | ||
This comment has been minimized.
Sorry, something went wrong.
alexanderdean
Member
|
||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
what is this import doing?