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

Fail to resolve remote reference #49

Closed
zengfenfei opened this issue Oct 10, 2016 · 3 comments
Closed

Fail to resolve remote reference #49

zengfenfei opened this issue Oct 10, 2016 · 3 comments

Comments

@zengfenfei
Copy link

When I try to generate typings from swagger schema(https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/schemas/v2.0/schema.json), following error reported:

ReferenceError: Unable to find referenced file "/some/file/path/http:/json-schema.org/draft-04/schema#/properties/title"                                                                                                                      
    at /Users/xxx/Projects/swagger-typings/node_modules/json-schema-to-typescript/dist/index.js:115:99                  
    at tryFn (/Users/xxx/Projects/swagger-typings/node_modules/json-schema-to-typescript/dist/index.js:288:16)
...
@bcherny
Copy link
Owner

bcherny commented Oct 10, 2016

You're missing a forward slash in "http:". If you add it, you'll see a more specific error message that remote refs are not yet supported. PRs are welcome :)

@zengfenfei
Copy link
Author

Well, thanks. I'll try to create a PR for this.

@bcherny
Copy link
Owner

bcherny commented Apr 19, 2017

Tracking in #3

@bcherny bcherny closed this as completed Apr 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants