Comments (6)
I just wanted to say for now: thank you for the detailed report here.
Unfortunately, I'm not sure when I can get around to fixing most of this, but it's good to have this level of detail of information available.
from openapi.
No doubt that this would be a large effort if you were to try and and attack this by fixing code and Swagger annotations, but it isn't such a big deal if you clean it up in a post-processor like I did. I would be happy to share my preprocessSwagger
method in the swagger-codegen
plugin I created. It cleans everything up enough so that it passes validation and can be used with swagger-codegen
. It is written in Java, of course, but it would be rather easy to translate it to the Ruby equivalent. Just tack it on to the end of your build process and you should be good to go.
from openapi.
@mutsys Thanks a lot for the offer!
I think you're right in that applying a post processor would be the easiest fix for our problems, but I kind of feel like we'd just be papering over real problems and adding another layer of complexity overhead to our stack. Pretty much everything here is representative of an actual issue (e.g., non-unique operation IDs), and by far the cleanest fix is one that happens right at the root where we generate the original spec.
from openapi.
How about this one: all input parameters are defined as body parameters while Stripe wants x-www-form-urlencoded which is defined like this:
` parameters:
- in: formData
name: name
type: string
description: A person's name.
- in: formData
name: fav_number
type: number
description: A person's favorite number.
`
from openapi.
@sanderPostma I'm sorry to say that one is certainly not going to be changed.
The formData
specification is simply not adequately expressive enough for our purposes, which often include more complex data structures. OpenAPI 3.0 does a better job of addressing this, so I'd recommend moving to that for a system that's a little more adherent to recommended practices.
I'm also not even sure this is necessarily invalid. Reading describing request body, it's suggested that formData
is usually used, but the language doesn't imply that that use is necessarily exclusive.
from openapi.
I apologize for the extremely delayed response.
We've since moved to OpenAPI v3 and improved the quality of API descriptions. If you encounter problems when using the new OpenAPI 3 spec please file a new issue.
from openapi.
Related Issues (20)
- `POST /v1/ephemeral_keys` is missing the `verification_session` property HOT 2
- Add support for the new Tax Calculations HOT 1
- Chitwad
- Add license to info block
- BETA Money Movement APIs HOT 1
- Missing BETA issuing APIs HOT 1
- POST /v1/subscriptions missing a required parameter? HOT 8
- GET /v1/terminal/readers missing preview param `serial_number` HOT 4
- recursion between file and file_link HOT 2
- Plan in subscription object HOT 1
- Additional OpenAPI field properties: title and readOnly HOT 7
- Automatic pulling latest spec3.json per new Stripe OpenAPI release? HOT 2
- miss error invalid_bank_account_iban\invalid_owner_name HOT 5
- Frontier Climate: a bug report HOT 1
- `refunds` on `charge` is marked as required, but is not included in all requests HOT 3
- Update to Documentation HOT 1
- Retrieve events by related_object=<customer id> HOT 2
- Order Return Object has Disappeared HOT 2
- Question about subscription item quantity set to 0 HOT 1
- Spec3.json with Swagger UI - Out of Memory error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi.