Skip to content

Needs to copy yaml files manually if openapi.yaml is not placed at the repository root #483

@watanabe-pfr

Description

@watanabe-pfr

Thank you for providing a great tool.

Please support the relative path based on the position of openapi.yaml .

If the openapi.yaml is not placed at the repository root, like below,
the deployed pages cannot access to the parts directory with relative path.

.
├── interface
│   ├── README.md
│   └── v1
│       ├── openapi.yaml
│       └── parts
│           ├── part1.yaml
│           ├── part2.yaml
│           └── part3.yaml
└── README.md

It can be resolved with manual copy:

- name: Copy OpenAPI files
        run: |
          mkdir -p swagger-ui/parts
          cp interface/v1/openapi.yaml swagger-ui/
          cp interface/v1/parts/*.yaml swagger-ui/parts/

It'll be more intuitive if the build output is generated based on the path of openapi.yaml
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions