-
-
Couldn't load subscription status.
- Fork 260
Closed
Labels
bug 🔥Something isn't workingSomething isn't workingprioritized 🚚This issue has been prioritized and will be worked on soonThis issue has been prioritized and will be worked on soon
Description
Description
It seems that Reference not found errors occur when an escaped slash (~1) is present in a $ref string.
Error: Reference not found: #/paths/~1api~1users/get/responses/200/content/application~1json/schema
Reproducible example or configuration
https://stackblitz.com/edit/hey-api-client-fetch-example-hcuescjt?file=docs%2Fschema.json
OpenAPI specification (optional)
{
"openapi": "3.0.0",
"info": {
"title": "Sample API",
"version": "1.0.0"
},
"paths": {
"/api/users": {
"get": {
"summary": "Get users",
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
}
}
}
}
}
}
}
},
"post": {
"summary": "Post user",
"responses": {
"200": {
"description": "successful operation",
"content": {
"application/json": {
"schema": {
"$ref": "#/paths/~1api~1users/get/responses/200/content/application~1json/schema"
}
}
}
}
}
}
}
}
}System information (optional)
No response
mrlubos
Metadata
Metadata
Assignees
Labels
bug 🔥Something isn't workingSomething isn't workingprioritized 🚚This issue has been prioritized and will be worked on soonThis issue has been prioritized and will be worked on soon