Skip to content

[Kotlin] Primitive array items validity check #21315

New issue

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

Conversation

andreas-umbricht
Copy link
Contributor

Description

I opened an issue about that here where I explain the issue in more details. Essentially the validateJsonElement() function should also check if an array of primitives are in fact primitives. This check was missing before.

The check that I implemented does not validate if a list of strings is in fact a list of strings or a list of floats is in fact a list of floats. The check only distinguishes between primitives and non-primitives.
For our business-needs this fix should be already enough and can be expanded for more precise implementation.

@dr4ke616 @karismann @Zomzog @andrewemery @4brunu @stefankoppier @e5l

@andreas-umbricht andreas-umbricht changed the title Primitive array items validity check [Kotlin] Primitive array items validity check May 23, 2025
@wing328
Copy link
Member

wing328 commented May 26, 2025

thanks for the pr

please follow step 3 to update the samples so that ci can verify the result

@wing328
Copy link
Member

wing328 commented May 27, 2025

ci failure not related to this pr

let's give it a try

thanks for the contribution

@wing328 wing328 merged commit 05e672d into OpenAPITools:master May 27, 2025
57 of 64 checks passed
@wing328 wing328 added this to the 7.14.0 milestone May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants