-
Notifications
You must be signed in to change notification settings - Fork 348
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
When generating output a schema property is being ignored/skipped #1970
Comments
@ardatan Sorry to mention you like this, but do you have any idea what could cause this? |
The problem here does not come from the fact that two properties are pointing to the same reference. If you change the name of After identifying the issue, I looked on the internet to see if I could find any reference to it. In the meantime, I hope you can simply chose a different name for the keyword. |
@santino Thanks for your feedback. Yes It's weird because we have other working usages of Unfortunately we can't change the APIs, we simply consume them. |
Ok, so this is for a remote API you consume, not a specification yaml built locally. Have you looked into the rename transform? Of course, renaming the property name is just a workaround. |
Seems to be fixed in the latest versions; |
Describe the bug
When generating output a property is being ignored/skipped. I'm pretty new to yaml files, I just hope I'm doing some silly mistake and forgetting something. ;-)
To Reproduce
Steps to reproduce the behavior:
Checkout the
generate-bug-type-property
branch of the following repo: https://github.com/gablabelle/next-mesh-apollo-monorepo-example/tree/generate-bug-type-propertyRun
yarn
andcd packages/graphql-server
You can now take a look to the
test.yaml
wherev5_approvalRequest_approvalRequestSummaryGet
contains thetype
andtype2
fields pointing to the same ref.Run
yarn mesh:generate:typings
to generate output ts file.See the missing
type
field fromV5ApprovalRequestApprovalRequestGet
buttype2
is present.N/A
Expected behavior
Both
type
andtype2
fields should be present in the outputEnvironment:
OS: Mac Big Sur
@graphql-mesh/...
:NodeJS: v14.15.4
Additional context
N/A
The text was updated successfully, but these errors were encountered: