{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-parser/issues/239","repository_url":"https://api.github.com/repos/swagger-api/swagger-parser","labels_url":"https://api.github.com/repos/swagger-api/swagger-parser/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-parser/issues/239/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-parser/issues/239/events","html_url":"https://github.com/swagger-api/swagger-parser/issues/239","id":151806452,"number":239,"title":"Inline schema's \"default\", \"maximum\"... attributes are discarded by parser (or model?)'s ModelImpl class","user":{"login":"QianJin2013","id":5234060,"avatar_url":"https://avatars.githubusercontent.com/u/5234060?v=3","gravatar_id":"","url":"https://api.github.com/users/QianJin2013","html_url":"https://github.com/QianJin2013","followers_url":"https://api.github.com/users/QianJin2013/followers","following_url":"https://api.github.com/users/QianJin2013/following{/other_user}","gists_url":"https://api.github.com/users/QianJin2013/gists{/gist_id}","starred_url":"https://api.github.com/users/QianJin2013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QianJin2013/subscriptions","organizations_url":"https://api.github.com/users/QianJin2013/orgs","repos_url":"https://api.github.com/users/QianJin2013/repos","events_url":"https://api.github.com/users/QianJin2013/events{/privacy}","received_events_url":"https://api.github.com/users/QianJin2013/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-04-29T07:11:59Z","updated_at":"2016-07-19T20:15:39Z","closed_at":null,"body":"When define following parameter with a simple inline schema\r\n```\r\n...\r\n  post:\r\n      ... ...\r\n      parameters:\r\n        - name: amount\r\n          in: body\r\n          schema:\r\n            type: integer\r\n            format: int64\r\n            description: amount of money\r\n            default: 1000\r\n            maximum: 100000\r\n```\r\n\r\nI use swagger parser to read the yaml,  it is strange the \"default\", \"maximum\"... attributes are disappeared in its ModelImpl instance!\r\n\r\n<img width=\"406\" alt=\"2016-04-29 16 08 54\" src=\"https://cloud.githubusercontent.com/assets/5234060/14910012/b8dcdebc-0e24-11e6-9b30-ac9d14c241a4.png\">\r\n\r\nThough this is not a big problem, i can have other way to define this attributes, but it's better to let you know this so fix it later."},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-parser/issues/comments/233752093","html_url":"https://github.com/swagger-api/swagger-parser/issues/239#issuecomment-233752093","issue_url":"https://api.github.com/repos/swagger-api/swagger-parser/issues/239","id":233752093,"user":{"login":"benken-parasoft","id":11323121,"avatar_url":"https://avatars.githubusercontent.com/u/11323121?v=3","gravatar_id":"","url":"https://api.github.com/users/benken-parasoft","html_url":"https://github.com/benken-parasoft","followers_url":"https://api.github.com/users/benken-parasoft/followers","following_url":"https://api.github.com/users/benken-parasoft/following{/other_user}","gists_url":"https://api.github.com/users/benken-parasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/benken-parasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benken-parasoft/subscriptions","organizations_url":"https://api.github.com/users/benken-parasoft/orgs","repos_url":"https://api.github.com/users/benken-parasoft/repos","events_url":"https://api.github.com/users/benken-parasoft/events{/privacy}","received_events_url":"https://api.github.com/users/benken-parasoft/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T20:15:39Z","updated_at":"2016-07-19T20:15:39Z","body":"Also see https://github.com/swagger-api/swagger-core/issues/1201#issuecomment-155935359"}}
{"actor":{"display_login":"benken-parasoft"}}