Comments (8)
We can definitely look into it. Just curious - why do you need them to be imported in canonical-reference form?
from aws-apigateway-importer.
I have Card model referenced in multiple models throughout API.
If it is imported in inlined form to aws gateway, resulting IOS SDK will contain different classes for each inlined Card model.
For example, Card model is used inside User model and inside Account model. In that case sdk will contain two different classes with the same content: User_card, Account_card.
In case we will be able to have swagger file imported in form of external reference, than it will lead to single Card class, reused throughout API (in our example, Card class will be used as in User as in Account class).
I hope my explanation makes sense. Let me know if more clarifications are needed
from aws-apigateway-importer.
That makes sense. Have you tested that the iOS SDK generates the correct classes if you manually create models with external references?
from aws-apigateway-importer.
Yes, I tested. It generates classes which are reusable throughout api.
Although in both cases of inlined or external references, there is currently bug in ios sdk generator, I described in this issue:
https://forums.aws.amazon.com/thread.jspa?threadID=216636&tstart=0
AWS guys promised to look at it shortly, I hope it will be fixed soon.
from aws-apigateway-importer.
We do have a fix for that issue coming out soon. It may be a bit longer to address the external reference issue. If you can get it working in the short-term please feel free to send a pull request.
from aws-apigateway-importer.
I've updated importer in a separate fork to replace all $ref in models with pattern "https://apigateway.amazonaws.com/restapis/{API_ID}/models/{ModelName}".
It does what I need. But model refs inlining is thrown away.
Not sure whether such referencing suites all cases. Are there cases where inlining is preferable?
Let me know if you want this to be sent in pull request.
from aws-apigateway-importer.
Here's a +1 on this. Just ran into exactly the same problem with models being inlined and thus bloating the SDK with duplicate classes unnecessarily. External references would be exactly what I need.
from aws-apigateway-importer.
Swagger/OpenAPI import is now generally available in the API Gateway REST API, the AWS CLI and all AWS SDKs. You can also import and export Swagger definitions using the API Gateway console. This release addresses many of the open issues and feedback in this repository.
I would encourage you to migrate your workflow to the standard AWS tools. aws-apigateway-importer will receive minimal support from the API Gateway team going forward.
Any feedback or issues with the new importer should be directed to the official API Gateway forums.
Thanks,
Ryan
from aws-apigateway-importer.
Related Issues (20)
- Duplicate Model In Swagger File Because Of Same RequestBody variable Name HOT 1
- import Swagger failed - Parameter type formData not supported HOT 7
- com.amazonaws.util.json.JSONObject No Longer Available HOT 1
- Unable to import api definition from aws console? HOT 19
- Custom Authorizers wont' send CORS headers HOT 5
- "Invalid Mapping Expression Parameter" Error Thrown on method.request.path when Importing RAML with Nested uriParameters
- Support for ANY method with http proxy? HOT 1
- Polymorphism not supported? HOT 1
- Unable to create resource at path '/user/{userId}/fans': A sibling ({bizId}) of this resource already has a variable path part -- only one is allowed HOT 3
- A Linux AMI aws configuration HOT 1
- Root security definition HOT 2
- What's the relationship between Swagger definition and header returned by Lambda function? HOT 2
- Lambda invocation definition, does SAM respect ApiGateway section or Lambda section? HOT 2
- Importer does not create UserPoolAuthorizer. HOT 1
- Swagger import failing (created via app.swaggerhub.com, validated on http://editor.swagger.io/) HOT 3
- Error importing Swagger
- Explicit error message + support `example` swagger key
- base path issues with open banking API specifications
- Default value of properties
- Invalid model specified: Validation Result: warnings : [], errors : [Invalid model schema specified]
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 aws-apigateway-importer.