-
Notifications
You must be signed in to change notification settings - Fork 938
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
feat: openapi: 3.1.0 summary and description fields for refs #1030
Conversation
@bfanger I'll fix the conflicts and review today/tomorrow. |
b445f16
to
a94598f
Compare
Looking good to me - will be fun merging into PR #1024 but I guess that is my problem :) Speaking of problems - |
Ah, forgot to mention that I'd like to merge this and #1024 together and then create 4.1.0 after that unless there is reason that the spec version change to 3.1.0 should be a major version bump. |
a94598f
to
c314e9f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose it will make a few people happy :)
$defaultValues = get_class_vars(get_class($this)); | ||
foreach (['summary', 'description'] as $prop) { | ||
if (property_exists($this, $prop)) { | ||
if ($this->$prop !== $defaultValues[$prop]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question: Is there any value in looking up default values this convoluted way? After all we know that Generator::UNDEFINED
is the default value...
swagger-cli does not support 3.1.0
c314e9f
to
1842adf
Compare
openapi: 3.1.0
ref
Related to #885