Skip to content

Allow Mounting Custom OpenAPI YAML file #1849

@yharby

Description

@yharby

Is your feature request related to a problem? Please describe.

Yes, when I mount a custom openapi.yml into the geopython/pygeoapi Docker image, it gets overwritten by the entrypoint.sh script, which always generates a new openapi.yml at startup.

Describe the solution you'd like

Modify the entrypoint.sh script to check if an openapi.yml or PYGEOAPI_OPENAPI already exists before generating one. If a custom file is present, the script should skip the generation step.

Additional context

Allowing custom openapi.yml files to persist enhances flexibility. I'm willing to submit a PR with the necessary changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions