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

feat: move OpenApi 3.1.0 conversions to processor #1531

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

DjordyKoert
Copy link
Contributor

related to #1528

Moved logic to processor:

  • Processing of nullable property for 3.1.0
  • Processing of minimum & exclusiveMinimum property for 3.1.0
  • Processing of maximum & exclusiveMaximum property for 3.1.0

@DjordyKoert DjordyKoert marked this pull request as draft January 8, 2024 19:40
schema:
oneOf:
- { $ref: '#/components/schemas/repository', description: 'The repository' }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/DjordyKoert/swagger-php/blob/2eedbb3a9693762720a7aff34d6a2af8303bc593/src/Annotations/AbstractAnnotation.php#L358

$ref no longer exists after going through the OpenApi31Processor because it gets set to Generator::UNDEFINED which makes it no longer copy the description.

I have another work in progress branch to test if a new annotation Reference can be implemented for this with instead. https://github.com/DjordyKoert/swagger-php/blob/feat/reference-object-annotation/src/Annotations/Reference.php

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.

None yet

1 participant