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

json-machete:0.9.0 breaks on Windows when loading local files #4094

Closed
zbowyer20 opened this issue Jun 28, 2022 · 3 comments · Fixed by #4117
Closed

json-machete:0.9.0 breaks on Windows when loading local files #4094

zbowyer20 opened this issue Jun 28, 2022 · 3 comments · Fixed by #4117
Assignees

Comments

@zbowyer20
Copy link

For instance, when importing a local schema:

Failed to generate the schema Error: Unable to load src/mesh-data-sources/schemas/yocuda.yaml from C:\Users\User\Work\Software\yggdrasil
    at C:\Users\User\Work\Software\yggdrasil\node_modules\json-machete\index.js:301:35
    at runNextTicks (node:internal/process/task_queues:61:5)
    at listOnTimeout (node:internal/timers:526:9)
    at processTimers (node:internal/timers:500:7)
    at async dereferenceObject (C:\Users\User\Work\Software\yggdrasil\node_modules\json-machete\index.js:294:40)
    at async dereferenceObject (C:\Users\User\Work\Software\yggdrasil\node_modules\json-machete\index.js:397:32)
    at async dereferenceObject (C:\Users\User\Work\Software\yggdrasil\node_modules\json-machete\index.js:397:32)
    at async dereferenceObject (C:\Users\User\Work\Software\yggdrasil\node_modules\json-machete\index.js:397:32)
    at async Object.dereferenceObject (C:\Users\User\Work\Software\yggdrasil\node_modules\json-machete\index.js:397:32)
    at async getDereferencedJSONSchemaFromOperations (C:\Users\User\Work\Software\yggdrasil\node_modules\@omnigraph\json-schema\index.js:274:35)
@ardatan
Copy link
Owner

ardatan commented Jul 4, 2022

Thanks for opening the issue :)
Could you test with the alpha version here?
#4117 (comment)

@ardatan
Copy link
Owner

ardatan commented Jul 20, 2022

Closing this issue for now. Let me know if the issue persists. Since it is available with the latest versions.

@ardatan ardatan closed this as completed Jul 20, 2022
@jobaeurle
Copy link

Hi there, I've tried the example json-schema-fhir on windows and I've got the same error (json-schema version is 0.31.0)

Failed to generate the schema Error: Unable to load ./fhir.schema.json from C:\repos\graphql-mesh\examples\json-schema-fhir
    at C:\repos\graphql-mesh\examples\json-schema-fhir\node_modules\json-machete\index.js:157:35
    at async dereferenceObject (C:\repos\graphql-mesh\examples\json-schema-fhir\node_modules\json-machete\index.js:150:40)
    at async dereferenceObject (C:\repos\graphql-mesh\examples\json-schema-fhir\node_modules\json-machete\index.js:265:36)
    at async dereferenceObject (C:\repos\graphql-mesh\examples\json-schema-fhir\node_modules\json-machete\index.js:265:36)
    at async dereferenceObject (C:\repos\graphql-mesh\examples\json-schema-fhir\node_modules\json-machete\index.js:265:36)
    at async Object.dereferenceObject (C:\repos\graphql-mesh\examples\json-schema-fhir\node_modules\json-machete\index.js:265:36)
    at async getDereferencedJSONSchemaFromOperations (C:\repos\graphql-mesh\examples\json-schema-fhir\node_modules\@omnigraph\json-schema\index.js:274:35)     
    at async Object.createBundle (C:\repos\graphql-mesh\examples\json-schema-fhir\node_modules\@omnigraph\json-schema\index.js:1919:32)
    at async Object.getWithSet (C:\repos\graphql-mesh\examples\json-schema-fhir\node_modules\@graphql-mesh\store\index.js:160:38)
    at async JsonSchemaHandler.getMeshSource (C:\repos\graphql-mesh\examples\json-schema-fhir\node_modules\@graphql-mesh\json-schema\index.js:50:24)

@theguild-bot theguild-bot mentioned this issue Aug 11, 2022
@theguild-bot theguild-bot mentioned this issue Sep 28, 2023
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

Successfully merging a pull request may close this issue.

3 participants