{"action":"opened","issue":{"url":"https://api.github.com/repos/common-workflow-language/common-workflow-language/issues/124","labels_url":"https://api.github.com/repos/common-workflow-language/common-workflow-language/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/common-workflow-language/common-workflow-language/issues/124/comments","events_url":"https://api.github.com/repos/common-workflow-language/common-workflow-language/issues/124/events","html_url":"https://github.com/common-workflow-language/common-workflow-language/issues/124","id":106268422,"number":124,"title":"Proposal: define types at top file level","user":{"login":"tetron","id":1316612,"avatar_url":"https://avatars.githubusercontent.com/u/1316612?v=3","gravatar_id":"","url":"https://api.github.com/users/tetron","html_url":"https://github.com/tetron","followers_url":"https://api.github.com/users/tetron/followers","following_url":"https://api.github.com/users/tetron/following{/other_user}","gists_url":"https://api.github.com/users/tetron/gists{/gist_id}","starred_url":"https://api.github.com/users/tetron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tetron/subscriptions","organizations_url":"https://api.github.com/users/tetron/orgs","repos_url":"https://api.github.com/users/tetron/repos","events_url":"https://api.github.com/users/tetron/events{/privacy}","received_events_url":"https://api.github.com/users/tetron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-14T04:14:19Z","updated_at":"2015-09-14T04:14:19Z","closed_at":null,"body":"Allow users to define types at top level of files.  Parameters can reference these in the `type` field.\r\n\r\nExample:\r\n\r\n```\r\n- id: FooType\r\n  type: string\r\n  inputBinding:\r\n    prefix: \"-o\"\r\n\r\n- id: BarTool\r\n  type: CommandLineTool\r\n  inputs:\r\n    - id: output\r\n      type: \"#FooType\"\r\n```\r\n\r\nThis obsoletes SchemaDefRequirement.\r\n"}}