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

api-lib pointing to api-spec generated inside a directory has wrong path and fails #44

Open
trumbitta opened this issue Sep 29, 2021 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed plugin-openapi

Comments

@trumbitta
Copy link
Owner

trumbitta commented Sep 29, 2021

Creating this:

nx generate @trumbitta/nx-plugin-openapi:api-spec --name=spec --directory=app-name/api

Then this:

nx generate @trumbitta/nx-plugin-openapi:api-lib --name=api-lib --sourceSpecFileRelativePath=src/app-name.openapi.yaml --sourceSpecLib=app-name-api-spec

Something like this gets added in the project configuration for api-lib:

[...]
        "sourceSpecPathOrUrl": "libs/app-name-api-spec/src/app-name.openapi.yaml",
[...]

Instead of this:

[...]
        "sourceSpecPathOrUrl": "libs/app-name/api/spec/src/app-name.openapi.yaml",
[...]

We need a fix and better tests for this use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed plugin-openapi
Projects
None yet
Development

No branches or pull requests

1 participant