-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
How to reproduce:
Create the following files in a directory.
openapi.yaml
# openapi.yaml
openapi: "3.0.0"
info:
version: 1.0.0
title: Generate models
paths:
/client:
get:
operationId: getClient
parameters:
- description: "\nThis line causes the issue\n"
name: example
in: query
schema:
type: string
responses:
200:
description: "This is fine"
content:
application/json:
schema:
$ref: "#/components/schemas/ClientType"
components:
schemas:
ClientType:
type: object
required:
- name
properties:
name:
type: stringoapi-codegen.yaml
# oapi-codegen.yaml
package: client
output: openapi.gen.go
generate:
models: true
client: true
output-options:
overlay:
path: overlay.yamloverlay.yaml
# overlay.yaml
overlay: 1.0.0
info:
title: Overlay
version: 0.0.0
actions:
- target: "$"
update:
info:
x-overlay-applied: structured-overlayExecute oapi-codegen:
oapi-codegen -config oapi-codegen.yaml openapi.yamlResult:
error loading swagger spec in openapi.yaml
: failed to parse spec from "openapi.yaml": yaml: line 18: did not find expected key
exit status 1
Metadata
Metadata
Assignees
Labels
No labels