{"action":"opened","issue":{"url":"https://api.github.com/repos/tlivings/enjoi/issues/50","repository_url":"https://api.github.com/repos/tlivings/enjoi","labels_url":"https://api.github.com/repos/tlivings/enjoi/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/tlivings/enjoi/issues/50/comments","events_url":"https://api.github.com/repos/tlivings/enjoi/issues/50/events","html_url":"https://github.com/tlivings/enjoi/issues/50","id":337251011,"node_id":"MDU6SXNzdWUzMzcyNTEwMTE=","number":50,"title":"Saving Joi schema","user":{"login":"panKt","id":1470519,"node_id":"MDQ6VXNlcjE0NzA1MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/1470519?v=4","gravatar_id":"","url":"https://api.github.com/users/panKt","html_url":"https://github.com/panKt","followers_url":"https://api.github.com/users/panKt/followers","following_url":"https://api.github.com/users/panKt/following{/other_user}","gists_url":"https://api.github.com/users/panKt/gists{/gist_id}","starred_url":"https://api.github.com/users/panKt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panKt/subscriptions","organizations_url":"https://api.github.com/users/panKt/orgs","repos_url":"https://api.github.com/users/panKt/repos","events_url":"https://api.github.com/users/panKt/events{/privacy}","received_events_url":"https://api.github.com/users/panKt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-30T23:45:46Z","updated_at":"2018-06-30T23:45:46Z","closed_at":null,"author_association":"NONE","body":"I have converted object using enjoi. How do I store it as file now?\r\n\r\n```\r\nconst Enjoi       = require('enjoi')\r\nconst { convert } = require('json-to-json-schema')\r\nconst jsonSchema  = convert({ name:'Bob' })\r\nconst joiSchema   = Enjoi(jsonSchema)\r\n\r\n// I want to store 'joiSchema' as file so that it would have content similar to this:\r\n//\r\n// const SCHEMA = Joi.object().keys({\r\n//   name : Joi.string().required()\r\n// })\r\n\r\n\r\n```"}}
{"actor":{"display_login":"panKt"}}