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

Custom Loader is not asked for HTTP $refs #24

Open
YStrauch opened this issue Feb 4, 2017 · 0 comments
Open

Custom Loader is not asked for HTTP $refs #24

YStrauch opened this issue Feb 4, 2017 · 0 comments
Assignees

Comments

@YStrauch
Copy link

YStrauch commented Feb 4, 2017

  1. What version of the module is the issue happening on? Does the issue happen on latest version?
    Version 0.3.5 (current)

  2. What platform and Node.js version? (For example Node.js 0.12 on Mac OS X)
    Node 6.9 OSX

  3. Sample source code or steps to reproduce

{
  "description": "Just some JSON schema.",
  "title": "Basic Widget",
  "type": "object",
  "properties": {
    "foo": {
      "$ref": "http://www.mysite.com/myschema.yaml#/definitions/foo"
    }
  }
}

I need to support yaml files, so I wrote a custom loader that will parse yaml files, which is working well when I work locally. However when the yaml file is loaded via internet my custom loader is not called.

I'd expect the custom loader to be called the same way as if the $ref was pointing to a local file.

@YStrauch YStrauch changed the title Custom Loader is not asked for HTML $refs Custom Loader is not asked for HTTP $refs Feb 5, 2017
@bojand bojand self-assigned this Jun 7, 2017
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

No branches or pull requests

2 participants