omdbapi / OMDb-API

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

API request with invalid page obtains results #261

Open apibugsreporting opened 2 years ago

apibugsreporting commented 2 years ago

When making the following request: GET https://omdbapi.com/?s=with&y=1965&page=2.4353543563245&type=movie

Which uses an invalid value for parameter page (2.4353543563245), a 200 status code (including results) is obtained. Is this the expected behavior? Since the page 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/d41e76fce47e3185/