-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Generation of anonymous object schemas doesn't seem to work #626
Copy link
Copy link
Open
Description
Given the following OpenAPI:
openapi: '3.1.0'
info:
title: ''
version: ''
servers: []
paths:
"/healthcheck":
get:
summary: "Healthcheck endpoint"
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
health:
type: string
enum:
- "ok"We'll get generated the following struct:
type GetHealthcheckResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Health *N200Health `json:"health,omitempty"`
}
}However, N200Health isn't defined anywhere 😅
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels