{"action":"opened","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3788","repository_url":"https://api.github.com/repos/swagger-api/swagger-ui","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3788/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3788/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/3788/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/3788","id":266965977,"number":3788,"title":"OAS 3.0 Form Data Try-It-Out object serialization","user":{"login":"shockey","id":680248,"avatar_url":"https://avatars2.githubusercontent.com/u/680248?v=4","gravatar_id":"","url":"https://api.github.com/users/shockey","html_url":"https://github.com/shockey","followers_url":"https://api.github.com/users/shockey/followers","following_url":"https://api.github.com/users/shockey/following{/other_user}","gists_url":"https://api.github.com/users/shockey/gists{/gist_id}","starred_url":"https://api.github.com/users/shockey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shockey/subscriptions","organizations_url":"https://api.github.com/users/shockey/orgs","repos_url":"https://api.github.com/users/shockey/repos","events_url":"https://api.github.com/users/shockey/events{/privacy}","received_events_url":"https://api.github.com/users/shockey/received_events","type":"User","site_admin":false},"labels":[{"id":565243947,"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/3.x","name":"3.x","color":"0052cc","default":false},{"id":46110653,"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":606048208,"url":"https://api.github.com/repos/swagger-api/swagger-ui/labels/OAS%203.0","name":"OAS 3.0","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-19T19:48:37Z","updated_at":"2017-10-19T19:48:37Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"<!---\r\nThanks for filing an issue 😄 ! Before you submit, please read the following:\r\n\r\nSearch open/closed issues before submitting since someone might have asked the same thing before!\r\n\r\nIssues on GitHub are only related to problems of Swagger-UI itself. We'll try to offer support\r\nhere for your use case, but we can't offer help with projects that use Swagger-UI indirectly,\r\nlike Springfox or swagger-node.\r\n\r\nLikewise, we can't accept features or bugs in the Swagger/OpenAPI specifications themselves,\r\nor anything that violates the specifications.\r\n\r\n-->\r\n\r\n<!--- Provide a general summary of the issue in the title above -->\r\n\r\n<!--- \r\n  If you aren't sure what Swagger-UI version, see this guide: https://github.com/swagger-api/swagger-ui/blob/master/docs/version-detection.md\r\n--->\r\n\r\n\r\n| Q                               | A\r\n| ------------------------------- | -------\r\n| Bug or feature request?         |  Bug\r\n| Which Swagger/OpenAPI version?  | 3.0.0\r\n| Which Swagger-UI version?       | 3.3.2\r\n| Which browser & version?        | Chrome 61\r\n| Which operating system?         | macOS High Sierra\r\n\r\n\r\n### Demonstration API definition\r\n<!--- If you're describing a bug, please provide an API definition that reproduces your problem -->\r\n<!--- If you have link to a demo repo please link that! -->\r\n\r\n<!--- If your spec is large, please put it into a Gist (https://gist.github.com) instead of pasting it here. -->\r\n\r\n```yaml\r\nopenapi: '3.0.0'\r\ninfo:\r\n  version: 1.0.0\r\n  title: blah\r\nservers:\r\n- url: /\r\npaths:\r\n  /:\r\n    post:\r\n      description: asdf\r\n      requestBody:\r\n        content:\r\n          application/x-www-form-urlencoded:\r\n            schema:\r\n              type: object\r\n              properties:\r\n                id:\r\n                  type: string\r\n                  format: uuid\r\n                address:\r\n                  # complex types are stringified to support RFC 1866\r\n                  type: object\r\n                  properties: {}\r\n      responses:\r\n        200:\r\n          description: OK\r\n```\r\n\r\n### Expected Behavior\r\n<!--- If you're describing a bug, tell us what should happen -->\r\n<!--- If you're suggesting a change/improvement, tell us how it should work -->\r\n\r\nI expect my request body value, shown below, to be serialized correctly.\r\n\r\n```json\r\n{\r\n  \"id\": \"string\",\r\n  \"address\": {}\r\n}\r\n```\r\n### Current Behavior\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\n\r\nThe `address` object is not properly serialized before the request is sent:\r\n\r\n<img width=\"342\" alt=\"messages image 4135647482\" src=\"https://user-images.githubusercontent.com/680248/31790766-6d1486d4-b4cb-11e7-81aa-b4417c634b05.png\">\r\n\r\n\r\n### Possible Solution\r\n<!--- Not obligatory, but suggest a fix/reason for the bug, -->\r\n<!--- or ideas how to implement the addition or change -->\r\n\r\nNon-primitive values should be serialized correctly, here: https://github.com/swagger-api/swagger-js/blob/2a3f113c1c219ec3756a73ffc35e366987ff6f5c/src/execute/oas3/build-request.js#L47"}}
{"actor":{"display_login":"shockey"}}