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

[v5] schema import doesn't work correctly when schemas is at the same level as the endpoints file #120

Closed
eddiecooro opened this issue May 11, 2021 · 3 comments

Comments

@eddiecooro
Copy link
Contributor

What are the steps to reproduce this issue?

  1. build a project with the following config:
module.exports = {
  petstore: {
    output: {
      mode: 'split',
      target: './api/petstore/index.ts',
      schemas: './api/petstore/models',
	  client: 'react-query'
    },
    input: {
      target: './petstore.yaml',
    },
  }
}

What happens?

in the api/petstore/index.ts the models are getting imported from models
image

What were you expecting to happen?

The import path should be ./models
image

What versions are you using?

Package Version: 5.1.2

@eddiecooro
Copy link
Contributor Author

I'm working on a fix

@anymaniax
Copy link
Owner

Fixed and I did a new patch release 5.1.3

@anymaniax
Copy link
Owner

Thanks for your help

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