{"action":"closed","issue":{"url":"https://api.github.com/repos/json-api/json-api/issues/206","labels_url":"https://api.github.com/repos/json-api/json-api/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/json-api/json-api/issues/206/comments","events_url":"https://api.github.com/repos/json-api/json-api/issues/206/events","html_url":"https://github.com/json-api/json-api/issues/206","id":28835515,"number":206,"title":"Suggesting values to clients","user":{"login":"guillec","id":81830,"avatar_url":"https://avatars.githubusercontent.com/u/81830?v=3","gravatar_id":"","url":"https://api.github.com/users/guillec","html_url":"https://github.com/guillec","followers_url":"https://api.github.com/users/guillec/followers","following_url":"https://api.github.com/users/guillec/following{/other_user}","gists_url":"https://api.github.com/users/guillec/gists{/gist_id}","starred_url":"https://api.github.com/users/guillec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillec/subscriptions","organizations_url":"https://api.github.com/users/guillec/orgs","repos_url":"https://api.github.com/users/guillec/repos","events_url":"https://api.github.com/users/guillec/events{/privacy}","received_events_url":"https://api.github.com/users/guillec/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/json-api/json-api/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-03-05T23:14:22Z","updated_at":"2015-04-07T02:00:19Z","closed_at":"2015-04-07T02:00:19Z","body":"If you have pre-defined values for an attribute what is the best way to tell that to the client? In meta? Not here, in a profile? Any other way? \r\n\r\nExample:\r\n```\r\n#Posts \"status\" can only be \"Posted\", \"Draft\" or \"New\".\r\n{\r\n  \"meta\": {\r\n    \"status\": [\"Posted\",\"Draft\",\"New\"]\r\n  },\r\n\r\n  \"posts\": [{\r\n    \"status\": \"Draft\"\r\n  }]\r\n}\r\n```\r\n\r\nThanks!"}}