Commit Graph

1595 Commits

Author SHA1 Message Date
jos f005c437db Publish v5.32.5 2019-04-27 17:38:12 +02:00
jos a773d5cf8f Fixed JMESPath query wizard not correctly handling selection of multiple fields 2019-04-26 21:34:17 +02:00
jos b781a47702 Publish v5.32.4 2019-04-10 12:28:52 +02:00
jos 70b7e7914b Fixed #663 and #682: JSONEditor not being able to handle JSON schema validation errors when the root of the document is an Array 2019-04-10 12:23:13 +02:00
jos d51090b7c9 Publish `v5.32.3` 2019-04-04 19:51:40 +02:00
jos c685813538 Fix #684: `const` used in bundled library 2019-04-04 19:49:39 +02:00
jos 965584efe6 Publish v5.32.2 2019-04-03 15:08:29 +02:00
jos 271cb2b512 Update history 2019-04-03 14:58:36 +02:00
jos b38816a88b Merge branch 'duplicate_key_errors_take2' into develop
# Conflicts:
#	src/js/util.js
2019-04-03 14:56:39 +02:00
jos 35ff268759 Fix links in transform modal not working 2019-04-02 21:30:34 +02:00
jos 8cc4bf7efa Fix error in transform modal in case of an empty object 2019-04-02 21:27:50 +02:00
jos b279ed3069 Fix CSS class for default/non-default schema values not applied to enums, see (#666) 2019-04-02 21:09:17 +02:00
jos ff8be9635a Remove redundant 300px bottom padding (see #416) 2019-04-02 20:49:53 +02:00
jos 7624919a6c Fix broken build (remove usage of ` characters) 2019-04-02 20:47:29 +02:00
jos ebe7bafe51 Fix JMESPath query not working anymore for arrays with numbers 2019-03-31 20:03:56 +02:00
jos 801921867d Improve detection of value type in transform modal 2019-03-31 19:51:12 +02:00
jos 4818c4bb27 Styling improvements in the transform modal 2019-03-31 17:17:47 +02:00
jos 144be4a16d Fix duplicate warning icon not aways showing up 2019-03-31 16:29:09 +02:00
jos 2a551117b2 Merge branch 'develop' into duplicate_key_errors_take2 2019-03-30 21:19:41 +01:00
jos 9e3b6fb196 Fixed #416: Clipped action menu for append nodes 2019-03-30 21:00:26 +01:00
jos 12d908d08a Show warning icon when value or field is invalid or duplicate 2019-03-30 20:58:43 +01:00
jos 19a625fa6e Fix duplicate not working for arrays anymore 2019-03-30 14:15:24 +01:00
jos 6ccf5c651d Fix redo duplicate not checking for duplicate property names 2019-03-30 14:13:25 +01:00
jos d31917390c Revert to previous valid value on blur 2019-03-30 13:47:40 +01:00
jos 00baaacacc Disable having duplicate nodes (except whilst typing) 2019-03-30 13:35:51 +01:00
jos 55c4c91370 Publish v5.32.1 2019-03-28 20:17:11 +01:00
jos 4c5b19e7fa Update history 2019-03-28 19:51:42 +01:00
Adam Vigneaux 09ab92017c Fix JSON path parsing for array indices (#679)
* Switch JSON path tests to strict equality

The tests for `stringifyPath` and `parsePath` were using
[`assert.deepEqual`](https://nodejs.org/api/assert.html#assert_assert_deepequal_actual_expected_message),
which was causing the tests to pass when they should not have. Beyond
that, the `deepEqual` method is deprecated. The suggested replacement is
[`assert.deepStrictEqual`](https://nodejs.org/api/assert.html#assert_assert_deepstrictequal_actual_expected_message),
which causes the tests to fail where they should.

The difference between the two methods is the different between `==` and
`===`. `deepEqual` would coerce the input `"2"` to `2`, so the test was
passing even though the output was of the wrong type (string instead of
number).

* Coerce numeric indices to numbers in parsePath

This fixes a regression introduced in
3e7e1cebfd.
2019-03-28 19:49:36 +01:00
jos 560dd033ad Updated history 2019-03-21 21:29:38 +01:00
tobiasfriden 4763bdf293 Fixed using hyphens in the path of custom validation errors (#665)
* Fixed a bug where using hyphens in the path for custom validatons error didn't work

* Added closing bracket check and unit tests

* Automatically add brackets when path component contains hyphens

* use regexp to check if dot notation is safe
2019-03-21 21:27:17 +01:00
jos 0fbe7eee9a Publish v5.32.0 2019-03-20 17:46:49 +01:00
jos 3e7e1cebfd Fixed #676: JSON Paths containing array properties with a `]` not parsed correctly 2019-03-20 17:34:39 +01:00
jos 7c398aeef7 Update history. Fix JSON schema default value styling not working for `false` and `null`, and fixed the styling not updating when clicking a boolean checkbox (See #666) 2019-03-17 15:56:29 +01:00
Adam Vigneaux c79bea4eb8 Display schema defaults inline next to Nodes (#666)
* Display schema defaults inline next to Nodes

* Improve usability of schema default display

- When value is default, make it bold and set a tooltip
- When value is not default, display the default next to the value
- When value is default and is a select, show "Default" next to it
- Lighten the color of green used for values
  This increases the contrast between normal values and default values.

* Remove styling when value is the same as the schema default

This styling may have been confusing for some users and may not have
been applicable to all situations.

* Apply is-default and is-not-default classes to values

This allows the user to supply custom styling for these states.

To set styles for values that match the default value in the schema, use
the class `.jsoneditor-is-default`.

To set styles for values that _do not_ match the default value in the
schema, use the class `.jsoneditor-is-not-default`.

* Remove extra newline after schema examples in tooltip

* Move schema default display from inline to tooltip

This presents less opportunity for user confusion and is likely to be
more widely applicable.

* Add examples of schema metadata display

* Add documentation on styling
2019-03-17 15:39:00 +01:00
jos 7a2e89c329 Update history 2019-03-17 15:35:03 +01:00
jos 1d0870af36 Merge branch 'fix/schema-ref-examples' of https://github.com/AdamVig/jsoneditor into AdamVig-fix/schema-ref-examples 2019-03-17 15:31:23 +01:00
Adam Vigneaux 4f4a733fd6
Fix Node._findSchema bug when path is not present in schema
Previously, the function would return the wrong schema when it was
unable to find a path in the given schema.
2019-03-15 15:29:08 -04:00
jos 88972a62fc Publish v5.31.1 2019-03-14 21:22:07 +01:00
jos a01ff4a892 Fix missing polyfill on IE11 2019-03-14 21:21:19 +01:00
Adam Vigneaux f36cecdfde
Fix Node._findSchema schema reference support 2019-03-14 16:14:14 -04:00
Adam Vigneaux c0915548de
Add failing Node._findSchema schema reference test 2019-03-14 16:12:03 -04:00
DappWind 92fbe410a3 fix(i18b): fix Chinese translation error (#670) 2019-03-14 20:42:07 +01:00
Adam Vigneaux c93b8f1305
Add reproduction for schema ref examples bug 2019-03-14 11:27:28 -04:00
jos 1acd2d6116 Describe `onClassName` in the docs 2019-03-11 20:14:55 +01:00
jos 868dc38ceb Update history 2019-03-11 19:53:55 +01:00
adf0001 390afbdae0 Fix Chinese translation error (#668) 2019-03-11 19:52:46 +01:00
jos afead89e3b Publish `v5.31.0` 2019-03-10 17:56:47 +01:00
jos 829225849e Update history 2019-03-07 20:51:01 +01:00
jos 2dfde82197 Add examples to test_schema.html 2019-03-07 20:50:05 +01:00
Adam Vigneaux c8aeb1134d
Merge remote-tracking branch 'upstream/develop' into tooltip-examples 2019-03-04 16:15:14 -05:00