micronaut-projects / micronaut-openapi

Generates OpenAPI / Swagger Documentation for Micronaut projects
https://micronaut-projects.github.io/micronaut-openapi/latest/guide/index.html
Apache License 2.0
79 stars 93 forks source link

Added schema duplication resolution mode #1701

Closed altro3 closed 1 month ago

altro3 commented 1 month ago

Fixed #1698

Deprecated configuration properties:

micronaut.openapi.schema-prefix micronaut.openapi.schema-postfix micronaut.openapi.schema

New configuration properties to replace deprecated:

micronaut.openapi.schema.decorator.prefix micronaut.openapi.schema.decorator.postfix micronaut.openapi.schema.mapping

altro3 commented 1 month ago

@sdelamo no. Now schemas with same name renamed with index, and after this improvement, default behaviour will be the same. But I add new mode error, if you want to fix schema duplication manually

altro3 commented 1 month ago

Ah... you talking about other options... So the main problem with this property: micronaut.openapi.schema. Need to change it, but how we can do it?

sdelamo commented 1 month ago

Ah... you talking about other options... So the main problem with this property: micronaut.openapi.schema. Need to change it, but how we can do it?

We will have to add additional configuration options without creating a breaking change.

altro3 commented 1 month ago

Ok, I'll fix it tomorrow

altro3 commented 1 month ago

@sdelamo fixed