Bug: servers field in open-api.json points to localhost
File: static/pendle-v2/openapi/open-api.json
Problem
The servers field in the OpenAPI specification is currently set to a localhost address:
"servers": [
{
"url": "http://127.0.0.1:9000"
}
]
This appears to have been captured when the JSON spec was generated from a local development server rather than from the production endpoint.
Expected Value
Based on the production API base URL used consistently throughout the rest of the documentation, the servers field should point to the production API, e.g.:
"servers": [
{
"url": "https://api-v2.pendle.finance/core"
}
]
Impact
- Any API client or tool (e.g. Swagger UI, Postman, code generators) that reads the
servers field from this OpenAPI spec will attempt to make requests to http://127.0.0.1:9000, which will fail for all external users.
- This can cause confusion for developers integrating with the Pendle V2 API.
How to Fix
Per the instructions in docs/Developers/updating-ai-assets.md, the spec should be regenerated from the production endpoint:
curl -s https://api-v2.pendle.finance/core/docs-json \
| python3 -c "import json,sys; print(json.dumps(json.load(sys.stdin), indent=2))" \
> static/pendle-v2/openapi/open-api.json
This will ensure the servers field reflects the correct production URL.
Bug:
serversfield inopen-api.jsonpoints to localhostFile:
static/pendle-v2/openapi/open-api.jsonProblem
The
serversfield in the OpenAPI specification is currently set to a localhost address:This appears to have been captured when the JSON spec was generated from a local development server rather than from the production endpoint.
Expected Value
Based on the production API base URL used consistently throughout the rest of the documentation, the
serversfield should point to the production API, e.g.:Impact
serversfield from this OpenAPI spec will attempt to make requests tohttp://127.0.0.1:9000, which will fail for all external users.How to Fix
Per the instructions in
docs/Developers/updating-ai-assets.md, the spec should be regenerated from the production endpoint:This will ensure the
serversfield reflects the correct production URL.