{"action":"created","issue":{"url":"https://api.github.com/repos/apiaryio/dredd/issues/1116","repository_url":"https://api.github.com/repos/apiaryio/dredd","labels_url":"https://api.github.com/repos/apiaryio/dredd/issues/1116/labels{/name}","comments_url":"https://api.github.com/repos/apiaryio/dredd/issues/1116/comments","events_url":"https://api.github.com/repos/apiaryio/dredd/issues/1116/events","html_url":"https://github.com/apiaryio/dredd/issues/1116","id":365519505,"node_id":"MDU6SXNzdWUzNjU1MTk1MDU=","number":1116,"title":"Warning \"The property must be an int64 \" even the property has type of integer (and format int64)","user":{"login":"lenertovalucie","id":21968679,"node_id":"MDQ6VXNlcjIxOTY4Njc5","avatar_url":"https://avatars1.githubusercontent.com/u/21968679?v=4","gravatar_id":"","url":"https://api.github.com/users/lenertovalucie","html_url":"https://github.com/lenertovalucie","followers_url":"https://api.github.com/users/lenertovalucie/followers","following_url":"https://api.github.com/users/lenertovalucie/following{/other_user}","gists_url":"https://api.github.com/users/lenertovalucie/gists{/gist_id}","starred_url":"https://api.github.com/users/lenertovalucie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenertovalucie/subscriptions","organizations_url":"https://api.github.com/users/lenertovalucie/orgs","repos_url":"https://api.github.com/users/lenertovalucie/repos","events_url":"https://api.github.com/users/lenertovalucie/events{/privacy}","received_events_url":"https://api.github.com/users/lenertovalucie/received_events","type":"User","site_admin":false},"labels":[{"id":341420062,"node_id":"MDU6TGFiZWwzNDE0MjAwNjI=","url":"https://api.github.com/repos/apiaryio/dredd/labels/Context:%20Swagger%202.0","name":"Context: Swagger 2.0","color":"7371B7","default":false},{"id":492345207,"node_id":"MDU6TGFiZWw0OTIzNDUyMDc=","url":"https://api.github.com/repos/apiaryio/dredd/labels/Context:%20Swagger%202.0%20Fury.js%20Adapter","name":"Context: Swagger 2.0 Fury.js Adapter","color":"7371B7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-01T15:34:55Z","updated_at":"2018-10-02T08:45:49Z","closed_at":null,"author_association":"NONE","body":"#### Describe your problem\r\n\r\nDredd returns warning: \r\nThe id property must be an int64 (current value is 5).\r\nThe userStatus property must be an int32 (current value is 0).\r\n\r\n```\r\nfail: GET (200) /v2/user/testing duration: 352ms\r\nfail: body: The id property must be an int64 (current value is 5).\r\nbody: The userStatus property must be an int32 (current value is 0).\r\n\r\nrequest:\r\nmethod: GET\r\nuri: /v2/user/testing\r\nheaders:\r\n    Accept: application/json\r\n    User-Agent: Dredd/5.1.11 (Windows_NT 10.0.16299; x64)\r\n    Content-Length: 0\r\n\r\nbody:\r\n\r\n\r\n\r\nexpected:\r\nheaders:\r\n    Content-Type: application/json\r\n\r\nbody:\r\n{\r\n  \"id\": -62671663,\r\n  \"username\": \"adipisicing et\",\r\n  \"firstName\": \"quis id cupidatat\",\r\n  \"lastName\": \"occaecat sed\",\r\n  \"email\": \"cillum officia Lorem\",\r\n  \"password\": \"id sed anim sint\",\r\n  \"phone\": \"elit magna deserunt qui\",\r\n  \"userStatus\": -18960148\r\n}\r\nstatusCode: 200\r\nbodySchema: {\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\"},\"username\":{\"type\":\"string\"},\"firstName\":{\"type\":\"string\"},\"lastName\":{\"type\":\"string\"},\"email\":{\"type\":\"string\"},\"password\":{\"type\":\"string\"},\"phone\":{\"type\":\"string\"},\"userStatus\":{\"type\":\"integer\",\"format\":\"int32\",\"description\":\"User Status\"}}}\r\n\r\n\r\nactual:\r\nstatusCode: 200\r\nheaders:\r\n    date: Mon, 01 Oct 2018 15:17:28 GMT\r\n    access-control-allow-origin: *\r\n    access-control-allow-methods: GET, POST, DELETE, PUT\r\n    access-control-allow-headers: Content-Type, api_key, Authorization\r\n    content-type: application/json\r\n    connection: close\r\n    server: Jetty(9.2.9.v20150224)\r\n\r\nbody:\r\n{\r\n  \"id\": 5,\r\n  \"username\": \"testing\",\r\n  \"firstName\": \"string\",\r\n  \"lastName\": \"string\",\r\n  \"email\": \"string\",\r\n  \"password\": \"string\",\r\n  \"phone\": \"string\",\r\n  \"userStatus\": 0\r\n}\r\n```\r\n\r\napi-description.yml looks like this:\r\n\r\n```\r\nswagger: '2.0'\r\ninfo:\r\n  description: 'This is a sample server Petstore server.  You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).  For this sample, you can use the api key `special-key` to test the authorization filters.'\r\n  version: 1.0.0\r\n  title: Swagger Petstore\r\n  termsOfService: 'http://swagger.io/terms/'\r\n  contact:\r\n    email: apiteam@swagger.io\r\n  license:\r\n    name: Apache 2.0\r\n    url: 'http://www.apache.org/licenses/LICENSE-2.0.html'\r\nhost: petstore.swagger.io\r\nbasePath: /v2\r\ntags:\r\n  - name: pet\r\n    description: Everything about your Pets\r\n    externalDocs:\r\n      description: Find out more\r\n      url: 'http://swagger.io'\r\n  - name: store\r\n    description: Access to Petstore orders\r\n  - name: user\r\n    description: Operations about user\r\n    externalDocs:\r\n      description: Find out more about our store\r\n      url: 'http://swagger.io'\r\nschemes:\r\n  - https\r\n  - http\r\npaths:\r\n  '/user/{username}':\r\n    get:\r\n      tags:\r\n        - user\r\n      summary: Get user by user name\r\n      description: ''\r\n      operationId: getUserByName\r\n      produces:\r\n        - application/xml\r\n        - application/json\r\n      parameters:\r\n        - name: username\r\n          in: path\r\n          description: 'The name that needs to be fetched. Use user1 for testing. '\r\n          required: true\r\n          x-example: testing\r\n          type: string\r\n      responses:\r\n        '200':\r\n          description: successful operation\r\n          schema:\r\n            $ref: '#/definitions/User'\r\ndefinitions:\r\n  User:\r\n    type: object\r\n    properties:\r\n      id:\r\n        type: integer\r\n        format: int64\r\n      username:\r\n        type: string\r\n      firstName:\r\n        type: string\r\n      lastName:\r\n        type: string\r\n      email:\r\n        type: string\r\n      password:\r\n        type: string\r\n      phone:\r\n        type: string\r\n      userStatus:\r\n        type: integer\r\n        format: int32\r\n        description: User Status\r\n    xml:\r\n      name: User\r\nexternalDocs:\r\n  description: Find out more about Swagger\r\n  url: 'http://swagger.io'\r\n\r\n  ```\r\n\r\n#### What's your `dredd --version` output?\r\n\r\n```\r\ndredd v5.1.11 (Windows_NT 10.0.16299; x64)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/apiaryio/dredd/issues/comments/426196590","html_url":"https://github.com/apiaryio/dredd/issues/1116#issuecomment-426196590","issue_url":"https://api.github.com/repos/apiaryio/dredd/issues/1116","id":426196590,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjE5NjU5MA==","user":{"login":"lenertovalucie","id":21968679,"node_id":"MDQ6VXNlcjIxOTY4Njc5","avatar_url":"https://avatars1.githubusercontent.com/u/21968679?v=4","gravatar_id":"","url":"https://api.github.com/users/lenertovalucie","html_url":"https://github.com/lenertovalucie","followers_url":"https://api.github.com/users/lenertovalucie/followers","following_url":"https://api.github.com/users/lenertovalucie/following{/other_user}","gists_url":"https://api.github.com/users/lenertovalucie/gists{/gist_id}","starred_url":"https://api.github.com/users/lenertovalucie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenertovalucie/subscriptions","organizations_url":"https://api.github.com/users/lenertovalucie/orgs","repos_url":"https://api.github.com/users/lenertovalucie/repos","events_url":"https://api.github.com/users/lenertovalucie/events{/privacy}","received_events_url":"https://api.github.com/users/lenertovalucie/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T08:45:49Z","updated_at":"2018-10-02T08:45:49Z","author_association":"NONE","body":"Yes, exactly. Both values ​(5 and 0) are valid integers, so where is the problem?"}}
{"actor":{"display_login":"lenertovalucie"}}