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

Failed to dereference schema #264

Closed
KirillSerogodsky opened this issue May 27, 2022 · 1 comment
Closed

Failed to dereference schema #264

KirillSerogodsky opened this issue May 27, 2022 · 1 comment

Comments

@KirillSerogodsky
Copy link

KirillSerogodsky commented May 27, 2022

{
  "openrpc": "1.2.6",
  "info": {},
  "servers": [],
  "methods": [
    {
      "name": "test",
      "params": [
        {
          "name": "test",
          "schema": {
            "$ref": "#/components/schemas/Array"
          }
        }
      ],
      "result": {
        "name": "data",
        "schema": {
          "$ref": "#/components/schemas/Array",
          "items": {
            "$ref": "#/components/schemas/Number"
          }
        }
      }
    }
  ],
  "components": {
    "contentDescriptors": {},
    "schemas": {
      "Array": {
        "type": "array"
      },
      "Number": {
        "type": "number"
      }
    }
  }
}

Result:
Screenshot 2022-05-27 at 14 18 06
$ref is not parsed.

@philsturgeon
Copy link
Member

Hi Krill.

openrpc is not supported and there's not enough information in this issue to actually do anything about it anyway.

If you can dig in and send a PR with any relevant fixes that would be awesome.

Best of luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants