Showing posts with label JSON Schema. Show all posts
Showing posts with label JSON Schema. Show all posts

2019-04-20

2019-04-20 Saturday - Eclipse IDE v4.11 Release 2019-03 JSON Schema Validation Issues

During some recent testing of the latest release of the Eclipse IDE, v4.11, Release 2019-03 - I discovered some issues with JSON Schema Validation:

First:

While looking for a better JSON editor - I installed this plugin:

But, I observed that
  • It appears that when this plugin is installed - JSON Schema Validation (i.e. after registering the file pattern and schema URL via Window > Preferences > JSON > JSON Catalog) no longer works.
  • I repeated this test several times, by uninstalling the plugin - confirming that Schema Validation worked - and then re-installing the plugin and confirming that Schema Validation no longer worked.
  • I did not see any errors being logged to the Eclipse log file.
  • Tested with Java JDK 12, on a Windows 10 laptop
 Issue #26 Submitted

Second:

While experimenting with the JSON Schema Validation capabilities of the latest Eclipse release (v4.11, 2019-03) - I noted an error in the log (see my stackoverflow submission) - even though validation appeared to be working.

  • relequestual replied soon after: "JSON Schema core dev here. Yeah this looks fine in terms of JSON Schema. No idea why an error is being throw" 
 Issue #546541 Submitted:

Subsequently:

  • It appears that the exception is no longer thrown


  • ....a different error messages shows in the log - with a different exception is thrown. 

References:


Observation: 

There are quite a few open bugs within the Eclipse WTP Source Editing and wst.json component - that have not been addressed in years...

2015-08-29

2015-08-29 Saturday - JSON Schema

This posting is a placeholder for some research I'm doing related to JSON Schema features/capabilities.

https://en.wikipedia.org/wiki/JSON#JSON_Schema

"JSON Schema is an Internet Draft, currently version 4"
"Although JSON is intended solely as a data serialization format, its design as a non-strict subset of the JavaScript scripting language poses several security concerns. These concerns center on the use of a JavaScript interpreter to execute JSON text dynamically as embedded JavaScript. This exposes a program to errant or malicious scripts. This is a serious issue when dealing with data retrieved from the Internet. This easy and popular but risky technique exploits JSON's compatibility with the JavaScript eval() function" 

http://json-schema.org/

https://github.com/json-schema/json-schema

https://tools.ietf.org/html/draft-zyp-json-schema-04

https://groups.google.com/forum/#!forum/json-schema

https://www.npmjs.com/package/jsonschema
"JSON schema validator, which is designed to be fast and simple to use. The latest IETF published draft is v4, this library is mostly v4 compatible."
JSON Schema Lint
http://jsonschemalint.com/draft4/


http://crypt.codemancers.com/posts/2014-02-11-An-introduction-to-json-schema/
"The schema is still under development and the progress can be tracked by comparing the versions known as “drafts”. Currently, the schema is in the 4th version."

https://brandur.org/elegant-apis
"Much like the incoming request, Hyper-schema allows us to specify a schema for the outgoing response as well with the targetSchema keyword."
"Generate API documentation with Prmd." 







WordCount

Copyright

© 2001-2026 International Technology Ventures, Inc., All Rights Reserved.