Skip to content

Fix for pkName and openapi specs #584

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

Merged
merged 2 commits into from
Oct 16, 2019
Merged

Fix for pkName and openapi specs #584

merged 2 commits into from
Oct 16, 2019

Conversation

adnoh
Copy link
Contributor

@adnoh adnoh commented Oct 16, 2019

  1. if the pkName is not "id" it differs from /components/parameters. So as a workaround I would hardcode it (otherwise openapi validators are not happy)
  2. openapi specs require unique operationId field

adnoh added 2 commits October 16, 2019 10:43
…mponents/parameters"

maybe more a workaround than a fix. Better way would be to fix components
@mevdschee mevdschee self-assigned this Oct 16, 2019
@mevdschee mevdschee self-requested a review October 16, 2019 09:38
Copy link
Owner

@mevdschee mevdschee left a comment

Choose a reason for hiding this comment

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

Thank you very much for this great PR! It is almost ready to merge. A few points:

Changes should be done in the /src directory and not in the compiled api.php as they will be overwritten in a build.

If you feel that you did enough, then I will merge it as is and do the changes for you.

edit: I made the changes for you.

Regards, Maurits

@mevdschee mevdschee merged commit 3805515 into mevdschee:master Oct 16, 2019
mevdschee added a commit that referenced this pull request Oct 16, 2019
@mevdschee
Copy link
Owner

v2.6.1 is released with these changes merged. Thank you very much for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants