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

Add utility functions and person parser #65

Merged
merged 4 commits into from
May 17, 2019
Merged

Add utility functions and person parser #65

merged 4 commits into from
May 17, 2019

Conversation

nokome
Copy link
Member

@nokome nokome commented May 17, 2019

This is the sister PR to stencila/schema#65. It adds functions such as validate and coerce which are (will be) used here to ensure that data that is decoded from other formats conforms to the schema.

@nokome nokome requested a review from alex-ketch May 17, 2019 05:20
@codecov-io
Copy link

codecov-io commented May 17, 2019

Codecov Report

Merging #65 into master will increase coverage by 0.32%.
The diff coverage is 98.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #65      +/-   ##
==========================================
+ Coverage   92.33%   92.65%   +0.32%     
==========================================
  Files          21       23       +2     
  Lines        1917     2029     +112     
  Branches      490      519      +29     
==========================================
+ Hits         1770     1880     +110     
- Misses        141      143       +2     
  Partials        6        6
Impacted Files Coverage Δ
src/gdoc.ts 88.36% <100%> (+0.05%) ⬆️
src/md.ts 94.33% <100%> (+0.01%) ⬆️
src/person.ts 100% <100%> (ø)
src/util.ts 97.87% <97.87%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99975bb...b355a35. Read the comment docs.

Copy link
Contributor

@alex-ketch alex-ketch left a comment

Choose a reason for hiding this comment

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

Merging as it looks good overall, but I will be breaking out some of the concerns raised here into their own issues.
Thanks for this work @nokome! I agree that this separation of concerns between Schema/Convert makes much better sense 👍

src/util.ts Show resolved Hide resolved
src/util.ts Show resolved Hide resolved
src/util.ts Show resolved Hide resolved
@alex-ketch alex-ketch merged commit ff0d789 into master May 17, 2019
@alex-ketch alex-ketch deleted the add-util branch May 17, 2019 17:11
@stencila-ci
Copy link
Collaborator

🎉 This PR is included in version 0.35.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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