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 validation: #/definitions/QuoteSummaryResult #656

Closed
bmacedo opened this issue Jul 15, 2023 · 2 comments
Closed

Failed validation: #/definitions/QuoteSummaryResult #656

bmacedo opened this issue Jul 15, 2023 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists validation Issues related to validation

Comments

@bmacedo
Copy link

bmacedo commented Jul 15, 2023

Validation Error

Minimal Reproduction

Symbol(s) that it happened for

  • CSH2.L

Error Message

The following result did not validate with schema: #/definitions/QuoteSummaryResult
[
  {
    "instancePath": "/topHoldings",
    "schemaPath": "#/required",
    "keyword": "required",
    "params": {
      "missingProperty": "stockPosition"
    },
    "message": "must have required property 'stockPosition'",
    "data": {
      "maxAge": 1,
      "holdings": [],
      "equityHoldings": {
        "priceToEarnings": 0,
        "priceToBook": 0,
        "priceToSales": 0,
        "priceToCashflow": 0
      },
      "bondHoldings": {},
      "bondRatings": [],
      "sectorWeightings": []
    }
  },
  {
    "instancePath": "/topHoldings",
    "schemaPath": "#/required",
    "keyword": "required",
    "params": {
      "missingProperty": "bondPosition"
    },
    "message": "must have required property 'bondPosition'",
    "data": {
      "maxAge": 1,
      "holdings": [],
      "equityHoldings": {
        "priceToEarnings": 0,
        "priceToBook": 0,
        "priceToSales": 0,
        "priceToCashflow": 0
      },
      "bondHoldings": {},
      "bondRatings": [],
      "sectorWeightings": []
    }
  }
]

Environment

Browser or Node: node
Node version (if applicable):
Npm version:
Browser verion (if applicable):
Library version (e.g. 1.10.1): yahoo-finance2 v2.4.2

Additional Context

Issue reproducible when importing transactions on ghostfolio with this particular ticker

@bmacedo bmacedo added bug Something isn't working validation Issues related to validation labels Jul 15, 2023
@dtslvr
Copy link
Collaborator

dtslvr commented Jul 23, 2023

This looks like a duplicate of #639.

@gadicc gadicc added the duplicate This issue or pull request already exists label Jul 24, 2023
@gadicc
Copy link
Owner

gadicc commented Jul 24, 2023

Right you are, thanks, @dtslvr.

And thanks @bmacedo for reporting.

Fixed in the original issue above.

@gadicc gadicc closed this as completed Jul 24, 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 duplicate This issue or pull request already exists validation Issues related to validation
Projects
None yet
Development

No branches or pull requests

3 participants