Trax-air / swagger-tester

Automatically test your swagger API
MIT License
105 stars 36 forks source link

Faker? #34

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi Is it possible/would it be worthy of adding faker generated data? probably in

def _get_example_from_basic_type(type):

? Or is there a way to auto generate random Faker data for basic type I missed?

cyprieng commented 8 years ago

Swagger_parser allow this: https://github.com/Trax-air/swagger-parser/blob/master/swagger_parser/swagger_parser.py#L84

ghost commented 8 years ago

is there a reason for swagger_tester to force use_example=False when app_url is used?

    elif app_url is not None:
        app_client = requests
        swagger_parser = SwaggerParser(swagger_dict=requests.get(
            u'{0}/swagger.json'.format(app_url)).json(),
                                       use_example=False)
ghost commented 8 years ago

35