Skip to content

Test endpoint returns invalid data #6907

@tomplus

Description

@tomplus
Description

http://petstore.swagger.io which is used by integration tests, returns invalid data, for example pets without name (name is required). There are a lot of such records.

Command line used for generation
curl -X GET "http://petstore.swagger.io/v2/pet/-4227537848496351315" -H  "accept: application/xml"

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <Pet>
    <id>-4227537848496351315</id>
    <photoUrls/>
    <status>sold</status>
    <tags/>
  </Pet>
Suggest a fix/enhancement

Can I delete invalid records ? Is it possible to add such records by API ? Can we reset data periodically ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions