Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Comand api:openapi:export does not consider --spec-version as per docs #8955

Backlog

Description

@Dasc3er

API Platform version(s) affected: 4.4 verified

Description
Using the Laravel command to export the OpenAPI schema to a specific version as per documentation (e.g. 2, 3.0.0) instead of the default 3.2.0 is not applied and always generates the 3.2.0 variant.

Not verified on Symphony.

Reference for documentation: https://api-platform.com/docs/v4.4/core/openapi/

How to reproduce
On a Laravel installation:

php artisan api:openapi:export --spec-version=2
php artisan api:openapi:export --spec-version=3.0.0

Result is always:

{
    "openapi": "3.2.0",
    "info": {
    ...

Possible Solution
The Laravel commands gets the input correctly, but internally to the exporter it is not really used.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions