What is codegen.json used for?
See original GitHub issueAmazing repo, documentation is a bit thin though 😃
I was wondering what is codegen.json
for? I ran yarn generate
but got an error around authentication. On a closer look into codegen.json, it doesn’t look like those credentials are actually being used?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
jtd-codegen: Generate code from JSON Typedef schemas
JSON Type Definition, aka RFC8927, is an easy-to-learn, standardized way to define a schema for JSON data. You can use JSON Typedef to...
Read more >Generating Code from JSON Typedef Schemas with jtd-codegen
jtd-codegen is a tool that can generate types (clases, interfaces, structs, etc.) in many programming languages from a JSON Typedef schema. It lives...
Read more >json::codegen - Rust - Docs.rs
Writer Generator, this uses a custom writer to store the JSON result. Traits. Generator. Default trait for serializing JSONValue into string.
Read more >Code generation design - Ajv JSON schema validator
CodeGen module defines two tagged templates that should be passed to all code generation methods and used in other tagged templates:.
Read more >Using Codegen - Windows Community Toolkit - Microsoft Learn
To generate a C# or C++ file from JSON use the LottieGen command-line tool. ... For additional information about additional options including ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Within codegen.json you have to replace the default config with your own websites auth and graphql api. “schema”: { “https://{STORE-ID}.mybigcommerce.com/graphql”: { “headers”: { “Authorization”: “Bearer {API-KEY}” } } From my understanding it generates the output schema.d.ts, schema.graphql files. I don’t have in depth knowledge, but graphql provides a lot of benefits it just things like this that set you back. We have to understand this tool and its plugins in brevity because it shouldnt be this demanding to pull data. https://github.com/dotansimha/graphql-code-generator#readme
@FBosler if you clone master now, you can run
yarn generate:shopify
and it will generate definitions & schema