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: [quote] additionalProperties: underlyingSymbol (LDO.MI) #363

Closed
andreamultineddu opened this issue Dec 20, 2021 · 1 comment
Labels
bug Something isn't working validation Issues related to validation

Comments

@andreamultineddu
Copy link

Validation Error

Minimal Reproduction

await yahooFinance.quote('LDO.MI')

Symbol(s) that it happened for

  • LDO.MI

Error Message

{
  result: [
    {
      language: 'en-US',
      region: 'US',
      quoteType: 'EQUITY',
      triggerable: false,
      currency: 'EUR',
      trailingAnnualDividendYield: 0.022980958,
      epsTrailingTwelveMonths: 0.578,
      epsForward: 1.21,
      epsCurrentYear: 0.96,
      priceEpsCurrentYear: 6.1937504,
      twoHundredDayAverageChange: -0.84727,
      twoHundredDayAverageChangePercent: -0.12472197,
      marketCap: 3419984640,
      forwardPE: 4.9140496,
      priceToBook: 0.5831699,
      sourceInterval: 20,
      exchangeDataDelayedBy: 0,
      averageAnalystRating: '2.1 - Buy',
      tradeable: false,
      sharesOutstanding: 575174016,
      bookValue: 10.196,
      fiftyDayAverage: 6.39064,
      fiftyDayAverageChange: -0.44463968,
      fiftyDayAverageChangePercent: -0.06957671,
      twoHundredDayAverage: 6.79327,
      regularMarketChange: -0.14599991,
      regularMarketChangePercent: -2.396584,
      regularMarketTime: 2021-12-20T16:41:35.000Z,
      regularMarketPrice: 5.946,
      regularMarketDayHigh: 6.02,
      regularMarketDayRange: [Object],
      regularMarketDayLow: 5.814,
      regularMarketVolume: 4875176,
      regularMarketPreviousClose: 6.092,
      bid: 5.944,
      ask: 5.948,
      bidSize: 0,
      askSize: 0,
      fullExchangeName: 'Milan',
      financialCurrency: 'EUR',
      regularMarketOpen: 5.962,
      averageDailyVolume3Month: 6078724,
      averageDailyVolume10Day: 4489689,
      fiftyTwoWeekLowChange: 0.526,
      fiftyTwoWeekLowChangePercent: 0.09704797,
      fiftyTwoWeekRange: [Object],
      fiftyTwoWeekHighChange: -2.0640001,
      fiftyTwoWeekHighChangePercent: -0.2576779,
      fiftyTwoWeekLow: 5.42,
      fiftyTwoWeekHigh: 8.01,
      earningsTimestamp: 2022-03-10T10:59:00.000Z,
      earningsTimestampStart: 2022-03-10T10:59:00.000Z,
      earningsTimestampEnd: 2022-03-10T10:59:00.000Z,
      trailingAnnualDividendRate: 0.14,
      trailingPE: 10.287197,
      shortName: 'LEONARDO',
      underlyingSymbol: 'LD.MI',
      exchange: 'MIL',
      longName: 'Leonardo S.p.a.',
      messageBoardId: 'finmb_688713',
      exchangeTimezoneName: 'Europe/Rome',
      exchangeTimezoneShortName: 'CET',
      gmtOffSetMilliseconds: 3600000,
      market: 'it_market',
      esgPopulated: false,
      marketState: 'POSTPOST',
      firstTradeDateMilliseconds: 2005-07-18T07:00:00.000Z,
      priceHint: 2,
      symbol: 'LDO.MI'
    }
  ],
  errors: [
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteCryptoCurrency/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'circulatingSupply'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteCryptoCurrency/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'coinImageUrl'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteCryptoCurrency/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'fromCurrency'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteCryptoCurrency/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'lastMarket'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteCryptoCurrency/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'startDate'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteCryptoCurrency/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'toCurrency'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteCryptoCurrency/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'volume24Hr'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteCryptoCurrency/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'volumeAllCurrencies'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteCryptoCurrency/additionalProperties',
      keyword: 'additionalProperties',
      params: [Object],
      message: 'must NOT have additional properties',
      data: [Object]
    },
    {
      instancePath: '/0/quoteType',
      schemaPath: '#/definitions/QuoteCryptoCurrency/properties/quoteType/const',
      keyword: 'const',
      params: [Object],
      message: 'must be equal to constant',
      data: 'EQUITY'
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteCurrency/additionalProperties',
      keyword: 'additionalProperties',
      params: [Object],
      message: 'must NOT have additional properties',
      data: [Object]
    },
    {
      instancePath: '/0/quoteType',
      schemaPath: '#/definitions/QuoteCurrency/properties/quoteType/const',
      keyword: 'const',
      params: [Object],
      message: 'must be equal to constant',
      data: 'EQUITY'
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteEtf/additionalProperties',
      keyword: 'additionalProperties',
      params: [Object],
      message: 'must NOT have additional properties',
      data: [Object]
    },
    {
      instancePath: '/0/quoteType',
      schemaPath: '#/definitions/QuoteEtf/properties/quoteType/const',
      keyword: 'const',
      params: [Object],
      message: 'must be equal to constant',
      data: 'EQUITY'
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteEquity/additionalProperties',
      keyword: 'additionalProperties',
      params: [Object],
      message: 'must NOT have additional properties',
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteIndex/additionalProperties',
      keyword: 'additionalProperties',
      params: [Object],
      message: 'must NOT have additional properties',
      data: [Object]
    },
    {
      instancePath: '/0/quoteType',
      schemaPath: '#/definitions/QuoteIndex/properties/quoteType/const',
      keyword: 'const',
      params: [Object],
      message: 'must be equal to constant',
      data: 'EQUITY'
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteMutualfund/additionalProperties',
      keyword: 'additionalProperties',
      params: [Object],
      message: 'must NOT have additional properties',
      data: [Object]
    },
    {
      instancePath: '/0/quoteType',
      schemaPath: '#/definitions/QuoteMutualfund/properties/quoteType/const',
      keyword: 'const',
      params: [Object],
      message: 'must be equal to constant',
      data: 'EQUITY'
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteOption/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'expireDate'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteOption/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'expireIsoDate'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteOption/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'openInterest'",
      data: [Object]
    },
    {
      instancePath: '/0',
      schemaPath: '#/definitions/QuoteOption/required',
      keyword: 'required',
      params: [Object],
      message: "must have required property 'strike'",
      data: [Object]
    },
    {
      instancePath: '/0/quoteType',
      schemaPath: '#/definitions/QuoteOption/properties/quoteType/const',
      keyword: 'const',
      params: [Object],
      message: 'must be equal to constant',
      data: 'EQUITY'
    },
    {
      instancePath: '/0',
      schemaPath: '#/anyOf',
      keyword: 'anyOf',
      params: {},
      message: 'must match a schema in anyOf',
      data: [Object]
    }
  ]
}

Environment

Browser or Node: node
Node version (if applicable): 16.13.0
Npm version: 8.1.0
Browser verion (if applicable):
Library version : 2.0.1

Additional Context

@andreamultineddu andreamultineddu added bug Something isn't working validation Issues related to validation labels Dec 20, 2021
gadicc pushed a commit that referenced this issue Dec 21, 2021
# [2.1.0](v2.0.1...v2.1.0) (2021-12-21)

### Bug Fixes

* **chart:** more query tests, intervals, edge cases ([#336](#336)) ([6b95d7e](6b95d7e))
* **package:** have semantic-release recognize version branches ([a89d895](a89d895))
* **quote:** equity: allow underlyingSymbol.  LDN.MI test ([#363](#363)) ([817410b](817410b))

### Features

* **chart:** { return: "array" } (default) + test fix ([#336](#336)) ([1ac66c3](1ac66c3))
* **chart:** initial release as "_chart" ([#239](#239), [#328](#328), [#334](#334)) ([92b90b1](92b90b1))
@gadicc
Copy link
Owner

gadicc commented Dec 21, 2021

hey @andreamultineddu, thanks for reporting. this is fixed in 2.1.0, give it a spin and see how it goes.

@gadicc gadicc changed the title Failed validation: #/definitions/QuoteResponseArray Failed validation: [quote] additionalProperties: underlyingSymbol (LDO.MI) Dec 21, 2021
@gadicc gadicc closed this as completed Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working validation Issues related to validation
Projects
None yet
Development

No branches or pull requests

2 participants