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

1255 Make fdc3.fileAttachment and independent type #1261

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Yannick-Malins
Copy link
Contributor

Copy link

netlify bot commented Jul 15, 2024

Deploy Preview for fdc3 ready!

Name Link
🔨 Latest commit 884d96b
🔍 Latest deploy log https://app.netlify.com/sites/fdc3/deploys/6694e6e252d95c00083f0a66
😎 Deploy Preview https://deploy-preview-1261--fdc3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Yannick-Malins
Copy link
Contributor Author

@kriswest

@@ -38,38 +38,7 @@
"$ref": "action.schema.json#"
Copy link
Contributor

Choose a reason for hiding this comment

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

@Yannick-Malins can you change the additionalProperties.anyOf to oneOf - the semantics are virtually the same, but the code generation via QuickType differs (it'll merge properties with anyOf as you could be multiple of the referenced types at once, where we intend it to be oneOf the referenced types)

Copy link
Contributor

Choose a reason for hiding this comment

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

@Yannick-Malins The change I'm after is on line 36 above. Otherwise, this is good to merge, apart from a Changelog entry and the $id I flagged above.

Copy link
Contributor

@kriswest kriswest left a comment

Choose a reason for hiding this comment

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

LGTM - although I think Message's entities element needs to be defined with oneOf rather than anyOf. Could you change that, add a Changelog entry and then I'll approve and merge the change (new governance restrictions will invalidate any reviews that happen before a later change)

@kriswest kriswest assigned Yannick-Malins and unassigned kriswest Jul 29, 2024
@kriswest kriswest requested a review from a team July 29, 2024 09:26
@kriswest kriswest changed the title 1255 - split off fileAttachment 1255 Make fdc3.fileAttachment and independent type Sep 3, 2024
@@ -0,0 +1,53 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://fdc3.finos.org/schemas/next/context/attachment.schema.json",
Copy link
Contributor

Choose a reason for hiding this comment

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

the filename and this $id need to match, please change to: https://fdc3.finos.org/schemas/next/context/fileAttachment.schema.json

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.

fdc3.entity.fileAttachment is only defined inline in the fdc3.message schema and example has wrong type
2 participants