Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rjsf-team/react-jsonschema-form
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4c81b02742270e5225c826025f5e99efdc35ea32
Choose a base ref
...
head repository: rjsf-team/react-jsonschema-form
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 58a35340e30d1bcf7019885fbed9f495523c2640
Choose a head ref
Loading
Showing with 6,151 additions and 2,468 deletions.
  1. +126 −2 .gitignore
  2. +2 −3 ISSUE_TEMPLATE.md
  3. +2 −3 PULL_REQUEST_TEMPLATE.md
  4. +9 −1,886 README.md
  5. +575 −0 docs/advanced-customization.md
  6. +29 −0 docs/definitions.md
  7. +157 −0 docs/dependencies.md
  8. +711 −0 docs/form-customization.md
  9. +294 −0 docs/index.md
  10. +132 −0 docs/validation.md
  11. +16 −0 mkdocs.yml
  12. +1,598 −400 package-lock.json
  13. +8 −7 package.json
  14. +4 −3 playground/app.js
  15. +21 −0 playground/samples/alternatives.js
  16. +22 −0 playground/samples/anyOf.js
  17. +3 −1 playground/samples/index.js
  18. +24 −0 playground/samples/oneOf.js
  19. +15 −7 src/components/Form.js
  20. +21 −4 src/components/fields/BooleanField.js
  21. +63 −11 src/components/fields/{AnyOfField.js → MultiSchemaField.js}
  22. +83 −8 src/components/fields/NumberField.js
  23. +6 −3 src/components/fields/ObjectField.js
  24. +95 −59 src/components/fields/SchemaField.js
  25. +3 −2 src/components/fields/index.js
  26. +26 −2 src/components/widgets/BaseInput.js
  27. +39 −1 src/components/widgets/CheckboxWidget.js
  28. +1 −1 src/components/widgets/FileWidget.js
  29. +6 −1 src/components/widgets/RadioWidget.js
  30. +3 −1 src/components/widgets/SelectWidget.js
  31. +16 −2 src/utils.js
  32. +76 −21 src/validate.js
  33. +1 −1 test/ArrayFieldTemplate_test.js
  34. +37 −12 test/ArrayField_test.js
  35. +348 −0 test/BooleanField_test.js
  36. +142 −5 test/Form_test.js
  37. +192 −8 test/NumberField_test.js
  38. +44 −9 test/ObjectField_test.js
  39. +1 −1 test/SchemaField_test.js
  40. +94 −1 test/StringField_test.js
  41. +319 −0 test/anyOf_test.js
  42. +60 −0 test/const_test.js
  43. +437 −0 test/oneOf_test.js
  44. +2 −2 test/uiSchema_test.js
  45. +144 −0 test/utils_test.js
  46. +143 −0 test/validate_test.js
  47. +1 −1 webpack.config.dev.js
128 changes: 126 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,130 @@
npm-debug.log
node_modules
# Created by https://www.gitignore.io/api/osx,node,linux,windows
# Edit at https://www.gitignore.io/?templates=osx,node,linux,windows

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

### OSX ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Windows ###
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.gitignore.io/api/osx,node,linux,windows

# Package specific files

build
_build
site
dist
lib
yarn.lock

# IDE
.vscode

# Code coverage
coverage
.nyc_output
5 changes: 2 additions & 3 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### Prerequisites

- [ ] I have read the [documentation](https://github.com/mozilla-services/react-jsonschema-form/blob/master/README.md#readme);
- [ ] I have read the [documentation](https://react-jsonschema-form.readthedocs.io/);
- [ ] In the case of a bug report, I understand that providing a [SSCCE](http://sscce.org/) example is tremendously useful to the maintainers.
- [ ] Ideally, I'm providing a [sample JSFiddle](https://jsfiddle.net/n1k0/f2y3fq7L/6/) or a [shared playground link](https://mozilla-services.github.io/react-jsonschema-form/) demonstrating the issue.

### Description

@@ -13,8 +14,6 @@
2. [Second Step]
3. [and so on...]

Ideally, I'm providing a [sample JSFiddle](https://jsfiddle.net/n1k0/f2y3fq7L/6/) or a [shared playground link](https://mozilla-services.github.io/react-jsonschema-form/) demonstrating the issue.

#### Expected behavior

[What you expected to happen]
5 changes: 2 additions & 3 deletions PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -7,11 +7,10 @@ If this is related to existing tickets, include links to them as well.
### 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've [checked the rendering](https://react-jsonschema-form.readthedocs.io/en/latest/#contributing) of the Markdown text I've added
* [ ] **I'm adding or updating code**
- [ ] I've added and/or updated tests
- [ ] I've updated docs if needed
- [ ] I've updated [docs](https://react-jsonschema-form.readthedocs.io/) if needed
- [ ] I've run `npm run cs-format` on my branch to conform my code to [prettier](https://github.com/prettier/prettier) coding style
* [ ] **I'm adding a new feature**
- [ ] I've updated the playground with an example use of the feature
Loading