You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when Swift OpenAPI Generator generates this request body, it only creates the status property from the oneOf section, and none of the other properties from the properties section.
Expected to see all of the properties for the requestBody in the Input (e.g. name, head_sha, details_url, etc.), but I only have an enum with two cases that contain status.
Environment
swift version: 6.0
Additional information
No response
The text was updated successfully, but these errors were encountered:
czechboy0
changed the title
Incorrect generation of checks/create operation for GitHub API spec
Support mixed schemas of type: object + allOf/oneOf/anyOf
Dec 6, 2024
Description
The GitHub API spec has something like this for the request body of the
checks/create
operation:But when Swift OpenAPI Generator generates this request body, it only creates the
status
property from theoneOf
section, and none of the other properties from theproperties
section.Reproduction
openapi.yaml:
https://github.com/github/rest-api-description/blob/main/descriptions/ghes-3.5/ghes-3.5.yaml
openapi-generator-config.yaml:
Package version(s)
Expected behavior
Expected to see all of the properties for the
requestBody
in theInput
(e.g.name
,head_sha
,details_url
, etc.), but I only have an enum with two cases that containstatus
.Environment
swift version: 6.0
Additional information
No response
The text was updated successfully, but these errors were encountered: