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

Feature: Retrieve remote OpenAPI spec automatically #1

Closed
hughlv opened this issue Jun 13, 2023 · 1 comment
Closed

Feature: Retrieve remote OpenAPI spec automatically #1

hughlv opened this issue Jun 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@hughlv
Copy link
Contributor

hughlv commented Jun 13, 2023

The field path was supposed to work with a remote URL, but it's not.

image

According to cloud-annotations/docusaurus-openapi#231 , it's a regression of docusaurus-openapi. We probably need a workaround (e.g., a timer?) to pull the latest OpenAPI spec by GET https://penless.ai/api/docs.

@hughlv hughlv added the bug Something isn't working label Jun 13, 2023
@hughlv
Copy link
Contributor Author

hughlv commented Jun 17, 2023

Added an Express server to fetch https://penless.ai/api/docs and save as ./openapi.json every minute.

This solution has better performance comparing to fetching at realtime.

@hughlv hughlv closed this as completed Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant