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

Uses the common JSON Schema "title" property as the default field label when it exists #488

Merged
merged 2 commits into from
Nov 22, 2018

Conversation

alvin
Copy link
Contributor

@alvin alvin commented Nov 22, 2018

JSON schema convention uses "title": on a property to specify a human-friendly label.

This PR tries to use this title when label:true, before falling back to fieldNameCapitalized()

@alvin alvin requested a review from radekmie as a code owner November 22, 2018 20:26
@radekmie radekmie added the Type: Feature New features and feature requests label Nov 22, 2018
Copy link
Contributor

@radekmie radekmie left a comment

Choose a reason for hiding this comment

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

Looks good!

@codecov
Copy link

codecov bot commented Nov 22, 2018

Codecov Report

Merging #488 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #488   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files         157    157           
  Lines        1401   1402    +1     
=====================================
+ Hits         1401   1402    +1
Impacted Files Coverage Δ
packages/uniforms/src/JSONSchemaBridge.js 100% <100%> (ø) ⬆️

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 82e30ee...a2b48f7. Read the comment docs.

@radekmie radekmie merged commit 07fb5c4 into vazco:master Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New features and feature requests
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants