{"action":"closed","issue":{"url":"https://api.github.com/repos/mulesoft/api-designer/issues/229","repository_url":"https://api.github.com/repos/mulesoft/api-designer","labels_url":"https://api.github.com/repos/mulesoft/api-designer/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/mulesoft/api-designer/issues/229/comments","events_url":"https://api.github.com/repos/mulesoft/api-designer/issues/229/events","html_url":"https://github.com/mulesoft/api-designer/issues/229","id":43084839,"number":229,"title":"API Reference won't show Query Parameter example with value 0","user":{"login":"scordatura","id":8117014,"avatar_url":"https://avatars.githubusercontent.com/u/8117014?v=3","gravatar_id":"","url":"https://api.github.com/users/scordatura","html_url":"https://github.com/scordatura","followers_url":"https://api.github.com/users/scordatura/followers","following_url":"https://api.github.com/users/scordatura/following{/other_user}","gists_url":"https://api.github.com/users/scordatura/gists{/gist_id}","starred_url":"https://api.github.com/users/scordatura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scordatura/subscriptions","organizations_url":"https://api.github.com/users/scordatura/orgs","repos_url":"https://api.github.com/users/scordatura/repos","events_url":"https://api.github.com/users/scordatura/events{/privacy}","received_events_url":"https://api.github.com/users/scordatura/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2014-09-18T01:51:17Z","updated_at":"2016-07-28T16:09:50Z","closed_at":"2016-07-28T16:09:50Z","body":"In the detail window of API Portal and API Designer, a Query Parameter whose Example is just a zero ('0') is displayed without the Example. This is true whether the type is integer or string.\r\n\r\nYou can reproduce this with the RAML and sample file below.\r\n\r\nYou can see the RAML and sample with correct spacing by going into edit mode.\r\n\r\n----\r\n\r\n```\r\n#%RAML 0.8\r\nbaseUri: https://foo.example.com\r\ntitle: Foo API\r\nversion: 0.1\r\n\r\nresourceTypes:\r\n  - collection:\r\n      description: | \r\n        Collection of available <<resourcePathName>>. <br /> <br /> POST creates an <<resourcePathName|!singularize>>. GET shows an index. \r\n      get:\r\n        description: Get a list of <<resourcePathName>>.\r\n        headers: &commonHeaders\r\n          funky-thang:\r\n            displayName: Its-Your-Thing\r\n            description: Do what you want to do. \r\n            example: \"xyz987654\"\r\n          accept: \r\n            displayName: Accept\r\n            description: MIME types that client is willing to accept.\r\n            example: \"*/*\"\r\n          content-type: \r\n            displayName: Content Type\r\n            description: MIME type of document being served.\r\n            example: \"application/x-www-form-urlencoded,application/json\"\r\n        responses: &commonResponses\r\n          200:\r\n            body:\r\n              application/json:\r\n                example: |\r\n                  <<exampleCollection>>\r\n          404:\r\n            body:\r\n              application/json:\r\n                example: |\r\n                  {\"message\": \"<<resourcePathName|!singularize>> not found\" }\r\n          422:\r\n            body:\r\n              application/json:\r\n                example: |\r\n                  {\"message\": \"<<resourcePathName|!singularize>> cannot be processed because it has failed validation\" }\r\n          500:\r\n            body:\r\n              application/json:\r\n                example: |\r\n                  {\"message\": \"internal server error\" }\r\n        is: [\r\n          pageable\r\n        ]\r\ntraits:\r\n  - pageable:\r\n      queryParameters:       \r\n        page:\r\n          description: First page number to display. \r\n          example: 1\r\n          required: false\r\n          type: integer\r\n        disappearing-zero:\r\n          description: There should be an example below this line with value '0'.\r\n          example: 0\r\n          required: false\r\n          type: integer\r\n        redundancy:\r\n          description: Index of first row to display.\r\n          example: Redundancy begins with an 'r'.\r\n          required: false\r\n          type: string   \r\n        start:\r\n          description: Index of first row to display.\r\n          example: 999\r\n          required: false\r\n          type: integer  \r\n        what-about-a-string-of-zero:\r\n          description: There should be an example below this line with value '0'.\r\n          example: '0'\r\n          required: false\r\n          type: string  \r\n        yet-another-disappearing-zero:\r\n          description: There should be an example below this line with value '0'.\r\n          example: 0\r\n          required: false\r\n          type: integer\r\n/things:\r\n  description: |\r\n    Many things, cabbages and kings.\r\n  type:\r\n    collection:\r\n      exampleCollection: !include things.sample\r\n```\r\n\r\n----\r\n\r\n```\r\n[{\r\n  \"artistId\": \"110e8300-e32b-41d4-a716-664400445500\",\r\n  \"artistName\": \"Daft Punk\",\r\n  \"description\": \"French electronic music duo consisting of musicians Guy-Manuel de Homem-Christo and Thomas Bangalter\",\r\n  \"imageURL\": \"http://travelhymns.com/wp-content/uploads/2013/06/random-access-memories1.jpg\"\r\n  \"nationality\": {\r\n    \"countryCode\": \"FRA\",\r\n    \"countryName\": \"France\"\r\n  }\r\n},\r\n{\r\n  \"artistId\": \"110e8300-e32b-41d4-a716-229932554400\",\r\n  \"artistName\": \"Pink Floyd\",\r\n  \"description\": \"English rock band that achieved international acclaim with their progressive and psychedelic music.\",\r\n  \"imageURL\": \"http://www.billboard.com/files/styles/promo_650/public/stylus/1251869-pink-floyd-reunions-617-409.jpg\",\r\n  \"nationality\": {\r\n    \"countryCode\": \"ENG\",\r\n    \"countryName\": \"England\"\r\n  }\r\n},\r\n{\r\n  \"artistId\": \"11032be3-41d4-4455-a716-664400a71600\",\r\n  \"artistName\": \"Radiohead\",\r\n  \"description\": \" English rock band from Abingdon, Oxfordshire, formed in 1985\",\r\n  \"imageURL\": \"http://www.wired.com/images_blogs/photos/uncategorized/2007/10/01/radiohead.jpg\",\r\n  \"nationality\": {\r\n    \"countryCode\": \"ENG\",\r\n    \"countryName\": \"England\"\r\n  }\r\n},\r\n]\r\n```\r\n----\r\n\r\n![disappearing-zeros](https://cloud.githubusercontent.com/assets/8117014/4313963/4f8b594a-3ed5-11e4-9aa0-915417ac0683.png)\r\n"}}
{"actor":{"display_login":"sichvoge"}}