Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 425690

Summary: Only display relevant errors for jslint json validation
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Michael Rennie CLA 2014-01-14 12:52:28 EST
Consider the following example:

{
  "!name": "mongodb",
  "!define": {
  	"MongoClient" : {
  		"prototype" : {
  			"connect" : "fn(url: String, options: Object, callback: fn())",
  			"open" : "fn(callback: fn())",
  			"close" : "fn(callback: fn())",
  			"db" : "fn(dbName: String) -> Db"
  		},
  		"connect" : "fn(url: String, options: Object, callback: fn())"
  	},
  	"MongoClient_obj" : {
  		"!type" : "fn(serverConfig: Object, options: Object)"
  	},
  	"Db" : {
  		"prototype" : {
  			"cursorInfo" : "fn(options: Object, callback: fn())",
  			"dropDatabase" : "fn(callback: fn())",
  			"dropIndex" : "fn(collectionName: String, indexName: String, callback: fn())",
  			"indexInformation" : "fn(collectionName: String, options: Object, callback: fn())",
  			"reIndex" : "fn(collectionName: String, callback: fn())",
  			"removeAllEventListeners" : "fn()",
  			"stats" : "fn(options: Object, callback: fn())"
  		},
  		"connect" : "fn(url: String, options: Object, callback: fn())",
  		"DEFAULT_URL" : "String",
  		"wrap" : "fn()"
  	}
  }
}

If you forget a comma up near the top, following the missing comma there are hundreds of errors reported, when in reality there should only be one - "Missing comma"
Comment 1 John Arthorne CLA 2015-05-05 14:39:15 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html