We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
there is missing java.util.function.Function import for:
java.util.function.Function
public final static Map<String, ProfileEnum> VALUE_MAPPING = Map.copyOf(Arrays.stream(values()) .collect(Collectors.toMap(v -> v.value, Function.identity())));
it happened in CustomerCreateDTO when I use allOf in that way:
CustomerCreateDTO
allOf
CustomerCreateDTO: type: object required: - profile - nip allOf: - $ref: '#/components/schemas/CustomerUpdateDTO' - type: object properties: profile: type: string enum: - individual - corporate nip: type: string maxLength: 128 minLength: 8 CustomerUpdateDTO: type: object required: - street - buildingNumber - postalCode - city - email - parking - licensePlate properties: firstName: type: string maxLength: 128 lastName: type: string maxLength: 128 companyName: type: string maxLength: 256 street: type: string maxLength: 512 buildingNumber: type: string maxLength: 64 apartmentNumber: type: string maxLength: 32 postalCode: type: string maxLength: 16 city: type: string maxLength: 256 email: type: string maxLength: 256 format: email licensePlate: type: string maxLength: 64 notes: type: string maxLength: 512
but similar structure, without enum works with no problem:
enum
CustomerDTO: allOf: - $ref: '#/components/schemas/CustomerCreateDTO' - type: object required: - id - version properties: id: type: string format: uuid version: type: integer cyclicalInvoicing: type: boolean individual: type: boolean
The text was updated successfully, but these errors were encountered:
@alapierre I think, this bug in this project: https://github.com/micronaut-projects/micronaut-openapi
I fixed it here: micronaut-projects/micronaut-openapi#1731
Sorry, something went wrong.
No branches or pull requests
Bug Report Checklist
there is missing
java.util.function.Function
import for:it happened in
CustomerCreateDTO
when I useallOf
in that way:but similar structure, without
enum
works with no problem:The text was updated successfully, but these errors were encountered: