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 test and update documentation for using anyOf inside array items #1131

Merged
merged 2 commits into from
Jan 21, 2019
Merged

Add test and update documentation for using anyOf inside array items #1131

merged 2 commits into from
Jan 21, 2019

Conversation

LucianBuzzo
Copy link
Collaborator

@LucianBuzzo LucianBuzzo commented Jan 16, 2019

Signed-off-by: Lucian lucian.buzzo@gmail.com

I'd previously made the incorrect assumption that #1118 would not automatically work with array items - upon investigation I found that it just works™.
This PR just adds a basic test case for array support, updates the documentation and adds to the examples.

Checklist

  • I'm updating documentation
    • I've checked the rendering of the Markdown text I've added
    • If I'm adding a new section, I've updated the Table of Content
  • I'm adding or updating code
    • I've added and/or updated tests
    • I've updated docs if needed
    • I've run npm run cs-format on my branch to conform my code to prettier coding style
  • I'm adding a new feature
    • I've updated the playground with an example use of the feature

@LucianBuzzo
Copy link
Collaborator Author

@glasserc If you have time a review would be great!

Copy link
Contributor

@glasserc glasserc 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! Needs to be updated against current master. I remember thinking "Why would this not work in arrays?"

test/anyOf_test.js Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Signed-off-by: Lucian <lucian.buzzo@gmail.com>
@LucianBuzzo
Copy link
Collaborator Author

@epicfaace I've addressed your review comments, could you take another look at this PR please?

@epicfaace
Copy link
Member

Looks good, thanks @LucianBuzzo !

@epicfaace epicfaace merged commit 251a274 into rjsf-team:master Jan 21, 2019
KeroVieux added a commit to KeroVieux/react-jsonschema-form that referenced this pull request Jan 25, 2019
* 'master' of github.com:KeroVieux/react-jsonschema-form:
  updated
  replace submit button paragraph tag with div (rjsf-team#766)
  Fixes rjsf-team#824 (rjsf-team#1147)
  Fix bug where matching anyOf branch is not selected correctly (rjsf-team#1129)
  Document a gotcha with `additionalProperties` (rjsf-team#1149)
  doc: add permalinks and fix internal hyperlinks in documentation
  doc: add doc build instructions, update PR/issue templates with doc links
  Add onBlur and onFocus events for radio and checkbox widgets (rjsf-team#1143)
  add ui:help tips (rjsf-team#1145)
  doc: fix browserstack logo size
  docs: remove docs from README and link to readthedocs rjsf-team#1138
  doc: organize docs into separate files rjsf-team#1138
  doc: add browserstack logo rjsf-team#990
  Add test and update documentation for using anyOf inside array items (rjsf-team#1131)

# Conflicts:
#	src/components/Form.js
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.

3 participants