pyopenapi / pyswagger

An OpenAPI (fka Swagger) client & converter in python, which is type-safe, dynamic, spec-compliant.
MIT License
385 stars 89 forks source link

Provide a name when operationId is missing #85

Closed dasevilla closed 8 years ago

dasevilla commented 8 years ago

The specification says that operationId is optional. When this happens, generate a unique name using the HTTP method and path.

Prior to this patch, all operations without an operationId were silently omitted.

This patch is related to #42

coveralls commented 8 years ago

Coverage Status

Coverage increased (+0.008%) to 94.215% when pulling 129486c315fc680451c4b1ceec9aed43b42f6cc0 on dasevilla:missing-operationId into 4073c87fc78d46443dc3f9303af1e57ca14f29dc on mission-liao:master.

mission-liao commented 8 years ago

Hi, I'm very appreciated with your contribution. Here is my suggestion before accepting it as main branch:

If you have comments of these suggestion, please feel free to let me know.

dasevilla commented 8 years ago

How would I use this custom scanner?

mission-liao commented 8 years ago

I just realize that I didn't provide a sample to use scanner. Here is one when I tried to answer other issues.

https://github.com/mission-liao/pyswagger/issues/66#issuecomment-178988166