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

Fix payload for adding file references #128

Merged
merged 4 commits into from
Mar 18, 2019
Merged

Conversation

samanehsan
Copy link
Contributor

@samanehsan samanehsan commented Mar 15, 2019

Purpose

When adding file references via the ingest API, the payload needs to include the "fileName" and "content" keys (the file schema is nested under content).


Changes

Update the payload format for adding file references.


Review Instructions


PR Checklist

Please ensure the following when opening a PR:

  • This PR added or updated tests.
  • This PR updated docstrings or documentation.
  • This PR applied code style guidelines:
  • This PR considered generalizability beyond our own use case.

Follow-up Discussions

  • No follow-up discussions.

pipeline_tools/create_envelope.py Outdated Show resolved Hide resolved
@samanehsan
Copy link
Contributor Author

retest this please

1 similar comment
@samanehsan
Copy link
Contributor Author

retest this please

When adding file references via
the ingest API, the payload needs
to nest the file schema under a
"content" key.
Copy link
Member

@rexwangcc rexwangcc left a comment

Choose a reason for hiding this comment

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

argh... this is what I've missed during the metadata schema update :( sorry and thanks for this fix!

@samanehsan samanehsan merged commit bbc59b0 into master Mar 18, 2019
@rexwangcc rexwangcc deleted the se-fix-file-payload branch March 18, 2019 15:47
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.

4 participants