Skip to content

Enable using local Pulp instance for getting openapi spec #184

@pedro-psb

Description

@pedro-psb

In the openapi generate command, if the docs build/serve is getting components from local/dev workspace (found in provided or default --path), try looking if the plugin is available through a local pulp instance (via status) before generating the spec. If it is, get the spec from the instance. The generate command should accept a port option (default to 5001).

flowchart TD
    A[Start: openapi generate] --> C{plugin available in dev workspace?}
    C -- No --> D[Generate from managed repositories]
    C -- Yes --> E[Check for local pulp instance status]
    E --> F{Is pulp instance available?}
    F -- No --> I[Generate from user repositories]
    F -- Yes --> F2{Is the plugin available in the instance?}
    F2 -- No --> I
    F2 -- Yes --> G[Fetch from pulp instance]
    G --> H[End: Generation complete]
    D --> H
Loading

Metadata

Metadata

Assignees

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