omdbapi / OMDb-API

The Open Movie Database Bug Tracking
420 stars 21 forks source link

API request with future year returns results #259

Open apibugsreporting opened 2 years ago

apibugsreporting commented 2 years ago

When making the following request: GET https://omdbapi.com/?i=tt2051352&y=2070

Which uses a future year (2070) for parameter y, a 200 status code (including results) is obtained. Is this the expected behavior? Since the year is invalid, shouldn't the API return a 400 status code without results?

A test report revealing this issue is available at: http://apitesting.ddns.net/fse2022/restest/target/allure-reports/omdb__r_cbt_perturbation/#behaviors/b1a8273437954620fa374b796ffaacdd/48e2316c8d9ded00/