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

Support custom tags (#1710) #1714

Closed
wants to merge 2 commits into from
Closed

Support custom tags (#1710) #1714

wants to merge 2 commits into from

Conversation

BafS
Copy link
Contributor

@BafS BafS commented Sep 4, 2020

Fix #1710

@@ -374,6 +374,12 @@ private static function mergeFromArray(OA\AbstractAnnotation $annotation, array
$propertyName = 'ref';
}
if (!\in_array($propertyName, $done, true)) {
// Specification Extensions using custom tags (starting with `x-`)
if (2 < strlen($propertyName) && 'x_' === substr($propertyName, 0, 2)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

They actually begin with x- :)

@GuilhemN
Copy link
Collaborator

GuilhemN commented Sep 9, 2020

Thank you for submitting this PR!
Could you add a small test to this PR?

@mvanduijker
Copy link

Would love to see this merged.

@BafS do you need any help to complete this?

@GuilhemN
Copy link
Collaborator

Feel free to open a new PR if you'd like to finish this @mvanduijker :)

@DjordyKoert
Copy link
Collaborator

Fixed in #2230

@DjordyKoert DjordyKoert closed this Mar 6, 2024
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.

Allow custom key usage in "documentation" (for example x-logo)
4 participants