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

[OpenAPI] Tag is not taken from openapi_context #4113

Closed
soyuka opened this issue Mar 4, 2021 · 8 comments
Closed

[OpenAPI] Tag is not taken from openapi_context #4113

soyuka opened this issue Mar 4, 2021 · 8 comments

Comments

@soyuka
Copy link
Member

soyuka commented Mar 4, 2021

API Platform version(s) affected: 2.6.2

Description
openapi_context:
tags: [ User - Profile ]

@soyuka soyuka added the OpenAPI label Mar 4, 2021
@aglou
Copy link

aglou commented Mar 5, 2021

following

@soyuka
Copy link
Member Author

soyuka commented Mar 5, 2021

Mhh just tried this and it works try maybe:

 tags: 
  - User 
  - Profile

@aglou
Copy link

aglou commented Mar 5, 2021

Other example:
I have addresses of profile and addresses of professional
I need a tag to subresource profile like professional addresses :

. . . 
        properties:
            addresses:
                subresource:
                    resourceClass: 'App\Entity\Addresses'
                    collection: true
                readable: true
                writable: true
                required: true
. . .
subresourceOpereations:
            addresses_get_subresource:
                openapi_context:
                    tags: [ professional  Addresses]

This tag does n't work.

@soyuka
Copy link
Member Author

soyuka commented Mar 5, 2021

mhh related to #4046 I thought #4004 was supposed to fix this I'll check further can you check that the operation name is correct as stated in 4046 ?

@aglou
Copy link

aglou commented Mar 5, 2021

yes i tested addresses_get_subresource and api_profiles_addresses_get_subresource same problem summary not work too

@aglou
Copy link

aglou commented Mar 12, 2021

it's ok i m just delete this:
collection: true readable: true writable: true required: true

@stale
Copy link

stale bot commented Nov 5, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@soyuka
Copy link
Member Author

soyuka commented Oct 17, 2023

This bug is targeting 2.7, as API Platform 3.2 is out, version 2.7 has reached end of life. Therefore we'll close this issue.

We recommend to upgrade to API Platform 3.0, Les-Tilleuls.coop can offer paid support to help or even migrate your projects if they have tests.

We want to fund a Long Term Stable version of API Platform, if you or your organization would like to contribute to LTS support, please visit our Open Collective crowdfunding.

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

No branches or pull requests

2 participants