{"action":"created","issue":{"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/562","repository_url":"https://api.github.com/repos/raml-org/raml-js-parser-2","labels_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/562/comments","events_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/562/events","html_url":"https://github.com/raml-org/raml-js-parser-2/issues/562","id":192634711,"number":562,"title":"Improve JSON Schema output from the parser","user":{"login":"KonstantinSviridov","id":6206034,"avatar_url":"https://avatars.githubusercontent.com/u/6206034?v=3","gravatar_id":"","url":"https://api.github.com/users/KonstantinSviridov","html_url":"https://github.com/KonstantinSviridov","followers_url":"https://api.github.com/users/KonstantinSviridov/followers","following_url":"https://api.github.com/users/KonstantinSviridov/following{/other_user}","gists_url":"https://api.github.com/users/KonstantinSviridov/gists{/gist_id}","starred_url":"https://api.github.com/users/KonstantinSviridov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KonstantinSviridov/subscriptions","organizations_url":"https://api.github.com/users/KonstantinSviridov/orgs","repos_url":"https://api.github.com/users/KonstantinSviridov/repos","events_url":"https://api.github.com/users/KonstantinSviridov/events{/privacy}","received_events_url":"https://api.github.com/users/KonstantinSviridov/received_events","type":"User","site_admin":false},"labels":[{"id":281732019,"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/labels/Critical","name":"Critical","color":"eb6420","default":false},{"id":279347817,"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"sichvoge","id":498114,"avatar_url":"https://avatars.githubusercontent.com/u/498114?v=3","gravatar_id":"","url":"https://api.github.com/users/sichvoge","html_url":"https://github.com/sichvoge","followers_url":"https://api.github.com/users/sichvoge/followers","following_url":"https://api.github.com/users/sichvoge/following{/other_user}","gists_url":"https://api.github.com/users/sichvoge/gists{/gist_id}","starred_url":"https://api.github.com/users/sichvoge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sichvoge/subscriptions","organizations_url":"https://api.github.com/users/sichvoge/orgs","repos_url":"https://api.github.com/users/sichvoge/repos","events_url":"https://api.github.com/users/sichvoge/events{/privacy}","received_events_url":"https://api.github.com/users/sichvoge/received_events","type":"User","site_admin":false},"assignees":[{"login":"sichvoge","id":498114,"avatar_url":"https://avatars.githubusercontent.com/u/498114?v=3","gravatar_id":"","url":"https://api.github.com/users/sichvoge","html_url":"https://github.com/sichvoge","followers_url":"https://api.github.com/users/sichvoge/followers","following_url":"https://api.github.com/users/sichvoge/following{/other_user}","gists_url":"https://api.github.com/users/sichvoge/gists{/gist_id}","starred_url":"https://api.github.com/users/sichvoge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sichvoge/subscriptions","organizations_url":"https://api.github.com/users/sichvoge/orgs","repos_url":"https://api.github.com/users/sichvoge/repos","events_url":"https://api.github.com/users/sichvoge/events{/privacy}","received_events_url":"https://api.github.com/users/sichvoge/received_events","type":"User","site_admin":false},{"login":"KonstantinSviridov","id":6206034,"avatar_url":"https://avatars.githubusercontent.com/u/6206034?v=3","gravatar_id":"","url":"https://api.github.com/users/KonstantinSviridov","html_url":"https://github.com/KonstantinSviridov","followers_url":"https://api.github.com/users/KonstantinSviridov/followers","following_url":"https://api.github.com/users/KonstantinSviridov/following{/other_user}","gists_url":"https://api.github.com/users/KonstantinSviridov/gists{/gist_id}","starred_url":"https://api.github.com/users/KonstantinSviridov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KonstantinSviridov/subscriptions","organizations_url":"https://api.github.com/users/KonstantinSviridov/orgs","repos_url":"https://api.github.com/users/KonstantinSviridov/repos","events_url":"https://api.github.com/users/KonstantinSviridov/events{/privacy}","received_events_url":"https://api.github.com/users/KonstantinSviridov/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/milestones/5","html_url":"https://github.com/raml-org/raml-js-parser-2/milestones/Sprint%206%20core","labels_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/milestones/5/labels","id":2167820,"number":5,"title":"Sprint 6 core","description":"","creator":{"login":"ddenisenko","id":14824966,"avatar_url":"https://avatars.githubusercontent.com/u/14824966?v=3","gravatar_id":"","url":"https://api.github.com/users/ddenisenko","html_url":"https://github.com/ddenisenko","followers_url":"https://api.github.com/users/ddenisenko/followers","following_url":"https://api.github.com/users/ddenisenko/following{/other_user}","gists_url":"https://api.github.com/users/ddenisenko/gists{/gist_id}","starred_url":"https://api.github.com/users/ddenisenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddenisenko/subscriptions","organizations_url":"https://api.github.com/users/ddenisenko/orgs","repos_url":"https://api.github.com/users/ddenisenko/repos","events_url":"https://api.github.com/users/ddenisenko/events{/privacy}","received_events_url":"https://api.github.com/users/ddenisenko/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2016-12-01T02:54:03Z","updated_at":"2016-12-01T02:54:45Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-11-30T17:53:02Z","updated_at":"2016-12-01T18:58:04Z","closed_at":null,"body":"We've got a lot of very good feedback about the current JSON object that comes back from the parser. Most predominantly, the output should be more consistent. \r\n\r\nThis issue describes the different changes we'd like to make. Please feel free to help and discuss in this matter.\r\n\r\n\r\n**Improvements**\r\n\r\n| Schema Field | Current Type | Change |RAML version|\r\n|:---------------|:---------------|:---------------|:----|  \r\n| `mediaType` | Its either a `string` or an `array` | Only `array` |1.0|\r\n| `types` | An `array` of single key objects | `map` |1.0|\r\n| `traits` | An `array` of single key objects | `map` |1.0, 0.8|\r\n| `resourceTypes` | An `array` of single key objects | `map` |1.0, 0.8|\r\n| `annotationTypes` | An `array` of single key objects | `map` |1.0|\r\n| `securitySchemes` | An `array` of single key objects | `map` |1.0, 0.8|\r\n| `schemas` | Is serialized under the `schemas` key | serialize under the `types` key|1.0|\r\n|`schema`| Is serialized under the `schema` key | serialize under the `type` key|1.0|\r\n|`example` | Is serialized under the `example` key | serialize as one element array under the `examples` key|1.0|\r\n\r\n**New**\r\n\r\n| Field | Type | Description | RAML version |\r\n|:---------------|:---------------|:--------------|:---------------|\r\n| `completeRelativeUri`| `string` | Resource URI relative to Api root.  Adding it to any resource as a `string` value.| 1.0, 0.8 |\r\n| `parentUrl` | `string` | For a nested resource it's the complete relative URI of its parent. For a top level resource it's an empty string. Adding it to any resource as a `string` value. | 1.0, 0.8 |\r\n| `allUriParameters` | `map` | A union of URI parameters sets of the resource itself with URI parameters sets of all the resources which contain the resource. Adding it to any resource as an optional `map`.| 1.0, 0.8 |\r\n| `allUriParameters`| `map` | `allUriParameters` value of the owning resource. Adding it to any method as an optional `map`.| 1.0, 0.8 |\r\n\r\n**Remove**\r\n* `structuredExample`"},"comment":{"url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/comments/264260886","html_url":"https://github.com/raml-org/raml-js-parser-2/issues/562#issuecomment-264260886","issue_url":"https://api.github.com/repos/raml-org/raml-js-parser-2/issues/562","id":264260886,"user":{"login":"KonstantinSviridov","id":6206034,"avatar_url":"https://avatars.githubusercontent.com/u/6206034?v=3","gravatar_id":"","url":"https://api.github.com/users/KonstantinSviridov","html_url":"https://github.com/KonstantinSviridov","followers_url":"https://api.github.com/users/KonstantinSviridov/followers","following_url":"https://api.github.com/users/KonstantinSviridov/following{/other_user}","gists_url":"https://api.github.com/users/KonstantinSviridov/gists{/gist_id}","starred_url":"https://api.github.com/users/KonstantinSviridov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KonstantinSviridov/subscriptions","organizations_url":"https://api.github.com/users/KonstantinSviridov/orgs","repos_url":"https://api.github.com/users/KonstantinSviridov/repos","events_url":"https://api.github.com/users/KonstantinSviridov/events{/privacy}","received_events_url":"https://api.github.com/users/KonstantinSviridov/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T18:58:04Z","updated_at":"2016-12-01T18:58:04Z","body":"@sichvoge \r\n|Whats the difference between value and structuredValue?\r\n`value` is a string representation\r\n`structuredValue` is what has actually been specified: number, string, boolean or object"}}
{"actor":{"display_login":"KonstantinSviridov"}}