Skip to content
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

Fix Swagger warnings for properties #892

Merged
merged 2 commits into from
Jul 14, 2023

Conversation

shev-vadim-net
Copy link
Contributor

This PR should fix the #888 issue. I'm not sure how exactly the in_schema is used and whether we can just ignore it in Apipie::Generator::Swagger::ParamDescription::Builder. But since the in_schema is almost always true, I couldn't find a way how to combine it with the param_description in other way.

@@ -79,7 +79,7 @@ def for_default
end

def required?
required_from_path? || (!@in_schema && @param_description.required)
required_from_path? || @param_description.required
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PanosCodes can you confirm we can remove this check here?

@mathieujobin
Copy link
Collaborator

Can you run the rubocop --auto-correct and push the changes ?
thanks

@mathieujobin mathieujobin added the Next up consider for upcoming release or close label Jul 13, 2023
@mathieujobin mathieujobin merged commit 86a2ebe into Apipie:master Jul 14, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Next up consider for upcoming release or close
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants