Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolves #4, resolves #9, resolves #10, resolves #11 #12

Merged
merged 2 commits into from
Jan 5, 2021

Conversation

parthbond180
Copy link
Contributor

@parthbond180 parthbond180 commented Jan 3, 2021

fixes for various issues based on testing with obligation cordapp

Change summary:

  1. changed min platform version to 6 from 7 as min supported version of corda core tested against is corda 4.4 (platform version 6)
  2. Added serialiser for Duration
  3. Modified reflection logic to enable serailisation for types extending FlowLogic
  4. Added line endings for UNIX

…s issues based on testing with obligation cordapp
@parthbond180 parthbond180 requested a review from igor-b180 January 3, 2021 10:51
@@ -3,7 +3,7 @@ apply plugin: 'net.corda.plugins.cordapp'

cordapp {
targetPlatformVersion 7
minimumPlatformVersion 7
minimumPlatformVersion 6
Copy link
Collaborator

Choose a reason for hiding this comment

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

Worth adding a comment explaining why it's the minimum version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated commit message

@@ -208,6 +209,27 @@ class JavaInstantSerializer : CustomSerializer<Instant>,
}
}

/**
* Serializer for an [Duration] representing it as a JSON string value formatted as an ISO-8601 timestamp.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Misleading comment about 'timestamp', it's actually ISO duration format

override fun generateSchema(generator: JsonSchemaGenerator): JsonObject {
return mapOf(
"type" to "string",
"format" to "date-time"
Copy link
Collaborator

Choose a reason for hiding this comment

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

The format is not date-time, but ISO duration

@parthbond180 parthbond180 merged commit 700edf6 into master Jan 5, 2021
@parthbond180 parthbond180 deleted the bug-fixes-4-9-10-11 branch January 5, 2021 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants