Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Throw error when resolving references if reference data is not found #2

Merged

Conversation

kmudrick
Copy link
Contributor

No description provided.

@kmudrick
Copy link
Contributor Author

This will cause us to see:

Error: Could not find parameters/someBogusParameter in /path/to/src/foo/specs/bar.yaml
    at /path/to/src/foo/node_modules/oas-nodegen/lib/utilities.js:102:17
   ...

Whereas the current behavior is to pass along undefined and later on you get hit with a Cannot read property 'name' of undefined error message and no context / hint as to where it went wrong or what was being processed.

@pkedy
Copy link
Contributor

pkedy commented Jun 21, 2017

Thanks for the PR!

@pkedy pkedy merged commit 32d841e into capitalone:master Jun 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants