-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[BUG] [pistache] models don't compile due to calling validate()
with no parameters not returning bool
#16711
Labels
Comments
thanks for reporting the issue cc @@ventsyv (the author of the PR) |
Hi, i had the same issue, any news for this please?
|
keyjh2
added a commit
to keyjh2/openapi-generator
that referenced
this issue
May 6, 2024
…6711) When components/schema/<object> reference other objects, validate() was getting called on the referenced objects with no arguments. The return value was void, but checked as if it was a boolean value.
keyjh2
added a commit
to keyjh2/openapi-generator
that referenced
this issue
May 6, 2024
…6711) When components/schema/<object> reference other objects, validate() was getting called on the referenced objects with no arguments. The return value was void, but checked as if it was a boolean value.
wing328
pushed a commit
that referenced
this issue
May 7, 2024
renatomameli
pushed a commit
to renatomameli/openapi-generator
that referenced
this issue
May 17, 2024
…6711) (OpenAPITools#18586) When components/schema/<object> reference other objects, validate() was getting called on the referenced objects with no arguments. The return value was void, but checked as if it was a boolean value.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This PR introduced a change to call
if (!m_{{name}}.validate()) {
but the no-argumentvalidate
function throws on errors and returns void, this causes a compiler error:Found in OpenAPI 7.0.1 with the following command:
The text was updated successfully, but these errors were encountered: