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 generating avro schema associated to an openapi spec that contains an object with only additionalProperties set, the avro schema generated is not valid:
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:
tags:
type: objectdescription: Label-Value Pairs to identify properties about an alertadditionalProperties:
type: stringexample:
cluster: prodtype: unexpected_shutdown
Steps to reproduce
openapi-generator-cli generate -g avro-schema -i resources/test/openapi-spec.yaml -o test
or at least that could be fixed by a new template but know about nothing about the way it works. I'd be happy to try to fix it if you could give me some pointers.
Thx!
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
When generating avro schema associated to an openapi spec that contains an object with only
additionalProperties
set, the avro schema generated is not valid:where it should be
openapi-generator version
OpenAPI declaration file content or url
Steps to reproduce
Suggest a fix
I suppose it's related to
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/avro-schema/typeProperty.mustache
or at least that could be fixed by a new template but know about nothing about the way it works. I'd be happy to try to fix it if you could give me some pointers.
Thx!
The text was updated successfully, but these errors were encountered: