Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to use this to update slack-rs-api, seems broken? #7

Open
saethlin opened this issue Mar 22, 2018 · 1 comment
Open

Trying to use this to update slack-rs-api, seems broken? #7

saethlin opened this issue Mar 22, 2018 · 1 comment

Comments

@saethlin
Copy link

I'd like to update the definitions for slack-rs-api, but it looks like it's broken? I'm not a JS dev so I'm quite lost here, can anyone point me in the right direction?

Replacing ... in object fields in response for file_mention
Replacing ... in object fields in response for file_share
Replacing ... in object fields in response for pinned_item
undefined:1



SyntaxError: Unexpected end of input
    at Object.parse (native)
    at /home/ben/slack-api-schemas/api_scraper/index.js:877:56
    at Array.forEach (native)
    at /home/ben/slack-api-schemas/api_scraper/index.js:876:20
    at /home/ben/slack-api-schemas/api_scraper/node_modules/async/lib/async.js:52:16
    at /home/ben/slack-api-schemas/api_scraper/node_modules/async/lib/async.js:361:13
    at /home/ben/slack-api-schemas/api_scraper/node_modules/async/lib/async.js:52:16
    at replenish (/home/ben/slack-api-schemas/api_scraper/node_modules/async/lib/async.js:306:28)
    at /home/ben/slack-api-schemas/api_scraper/node_modules/async/lib/async.js:326:29
    at /home/ben/slack-api-schemas/api_scraper/node_modules/async/lib/async.js:44:16

It looks like the culprit is this line

const messageSchema = GenerateSchema.json(JSON.parse(sanitizeResponse(messageType.name, messageType.sample)));
@saethlin saethlin changed the title Trying to use this to Trying to use this to update slack-rs-api, seems broken? Mar 22, 2018
@Mange
Copy link

Mange commented Mar 25, 2018

I'll see if I can find a fix for it.

@Mange Mange mentioned this issue Mar 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants