thetvdb / v4-api

Founded in 2006, TheTVDB is one of the longest-running community-driven TV and Movie databases. With content metadata across hundreds of thousands of TV series and movies, TheTVDB powers many of the largest media centers in the market. Developers across the world build and rely upon TheTVDB's APIs to power their apps, utilities, and projects, generating millions of API calls per day. In our GitHub repository you will find all of the necessary support and v4 API documentation to make use of TheTVDB's metadata. Come and join us!
140 stars 13 forks source link

Schema mismatch with the JSON response. #314

Closed scampower3 closed 4 months ago

scampower3 commented 10 months ago

I have used NSwag to generate an API client. However, I get some issues with the as the JSON response is not what the client is expecting.

Some observed mismatches:

  1. Character: EpisodeId, MovieId and SeriesId should be nullable
  2. ParentCompany: Id should be nullable
  3. CompanyRelationShip: Id should be nullable
  4. EpisodeBaseRecord: AverageRuntime, ImageType and Runtime should be nullable
  5. EpisodeExtendedRecord: AverageRuntime, ImageType and Runtime should be nullable
  6. SearchResult: Overviews and Translations should be Dictionaries
  7. Status: Id is should be nullable
  8. Companies: Studio, Network, Production, Distributor and Special_effects should be Lists
George-Miao commented 9 months ago

Glad that someone has spotted the problem first. I was just about to open an issue on the search result one.

antheaezzell commented 9 months ago

I have issued an investigatory ticket here, which we will look into. Ticket is for our internal reference.

scampower3 commented 7 months ago

Hey, found another one:

Company: primaryCompanyType should be nullable MovieBaseRecord: runtime should be nullable MovieExtendedRecord: runtime should be nullable