Skip to content
#

codegen

Here are 533 public repositories matching this topic...

rogpeppe
rogpeppe commented May 25, 2019

One of the specific advantages of the wire approach is that it generates code that's relatively readable compared to reflect-based equivalents. When wire.Value is used on a small by-value type, there's no need for the value to live in a global variable - the expression could instead be used literally inside the generated code, which would make the code easier to follow, and more similar to the c

enhancement good first issue
genqlient
benjaminjkraft
benjaminjkraft commented Mar 9, 2022

Stacktrace:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x6d064d]

goroutine 1 [running]:
github.com/Khan/genqlient/generate.(*generator).preprocessQueryDocument.func1(0xc000174240, 0xc0000dac00)
	/home/benkraft/.go/pkg/mod/github.com/!khan/genqlient@v0.4.0/generate/generate.go:188 +0x2d
[...]
``
bug good first issue help wanted
derberg
derberg commented Feb 10, 2021

Reason/Context

The problem is described here asyncapi-archived-repos/playground#79. It must be clear that returned data is not content but an object with content and metadata + what is this metadata, and that it is only with React renderer.

Description

Probably JSDoc must be only updated. Of course, some additional section in the readme would be also welcomed 😄

enhancement good first issue
sideeffffect
sideeffffect commented Oct 4, 2021

With a file

---
description: 400 - The request was malformed or missing a required field.
content:
  application/json:
    schema: { $ref: '#definitions/BadRequestResponse' }

definitions:
  BadRequestResponse:
    description: Optional information about how the request was bad.
    type: object
    properties:
      fieldName:
        description: >-
          If this error
bug help wanted good first issue core
Graphaello

Improve this page

Add a description, image, and links to the codegen topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the codegen topic, visit your repo's landing page and select "manage topics."

Learn more