Skip to content

sevein/oapi-codegen-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem

When a response is defined as follows:

        '400':
          description: The server could not understand the request due to invalid syntax.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/InvalidDocument'
                  - $ref: '#/components/schemas/GenericError'

The code generated by oapi-codegen v2.3.0 does not seem to allow for setting the expected values within the object response.

Instructions

Generate code:

go run github.com/oapi-codegen/oapi-codegen/v2/cmd/[email protected] -config=config.yml openapi.yaml

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages