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
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
When trying to generate an Avro schema from an open api spec that contains a type string with format byte, the corresponding generated type is "mode.Bytes" instead of "bytes".
openapi: 3.0.1info:
title: Sample APIdescription: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.version: 0.1.9servers:
- url: http://api.example.com/v1description: Optional server description, e.g. Main (production) server
- url: http://staging-api.example.comdescription: Optional server description, e.g. Internal staging server for testingpaths:
/users:
get:
summary: Returns a list of users.description: Optional extended description in CommonMark or HTML.responses:
"200": # status codedescription: A JSON array of user namescontent:
application/json:
schema:
type: arrayitems:
type: stringcomponents:
schemas:
Alert:
type: objectproperties:
certi:
description: Base64 encoded certificatetype: stringformat: byte
Steps to reproduce
openapi-generator-cli generate -g avro-schema -i resources/test/openapi-spec.yaml -o test
Related issues/PRs
Suggest a fix
I'd be happy to try to fix it, but I'm fairly new to mustach template within openapi generator.
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
When trying to generate an Avro schema from an open api spec that contains a type string with format byte, the corresponding generated type is "mode.Bytes" instead of "bytes".
instead of
openapi-generator version
openapi-generator-cli 7.10.0
commit : 12dfe8f
OpenAPI declaration file content or url
Steps to reproduce
Related issues/PRs
Suggest a fix
I'd be happy to try to fix it, but I'm fairly new to mustach template within openapi generator.
The text was updated successfully, but these errors were encountered: