-
Notifications
You must be signed in to change notification settings - Fork 20
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
CLI: Mocking - allow local file external references #774
CLI: Mocking - allow local file external references #774
Conversation
…napi-mock container with all resolved refs internalised
✅ Deploy Preview for kusk-docs-preview canceled.
|
It doesn't seem to be picking up files with relative paths
Otherwise it is working |
Signed-off-by: jasmingacic <jasmin.gacic@gmail.com>
|
||
cli, err := client.NewClientWithOpts(client.FromEnv) | ||
apiSpec, err := apiParser.Parse(apiSpecLocation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kylehodgetts i took the liberty to fix this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Comments are optional to resolve.
Signed-off-by: jasmingacic <jasmin.gacic@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This PR closes #769
Changes
Limitations
Due to getkin/kin-openapi#618 we are not able to resolve transitive reference dependencies i.e. an external schema you refer to in your openapi spec also has an external reference. At the time of writing, only direct external references are supported
Checklist