Comments (5)
Hi!
Please make sure you have the minimum required version of angularJS (1.5.0)
Please provide sample code so i can see the way you use it
Regards
from angular-swagger-ui.
Thank you for quick response.
Upgrade Angular to 1.5 or higher didn't help.
But it looks like we found a problem. At least, part of it.
We don't use angular-swagger-ui directly to show the data.
But we provide the data returned from swaggerUiCtrl.swaggerContent to our component which renders our UI.
In angular-swagger-ui v.0.5. the swaggerUiCtrl.swaggerContent data has been changed, that's why we didn't see anything.
We changed resources to ui.resources in our iteration and it helped.
Now we're trying to figure out, how to display API model correctly, something has been changed as well.
from angular-swagger-ui.
Old data is different from new.
New one has only:
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
while old one has:
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error",
"json": "{\n \"code\": 0,\n \"message\": \"string\",\n \"error\": \"string\"\n}",
"model": {},
"definition": {
"properties": {
"code": {
"type": "integer",
"format": "int32",
"hasAdditionalProperties": true
},
"message": {
"type": "string"
},
"error": {
"type": "string"
}
},
"name": "Error",
"isRootDefinition": true,
"propertyReferences": {
"Error": {
"properties": {
"code": {
"type": "integer",
"format": "int32",
"hasAdditionalProperties": true
},
"message": {
"type": "string"
},
"error": {
"type": "string"
}
}
}
}
}
}
Data also has "responseClass" and inside it has a key "propertyReferences".
The old "propertyReferences" has data:
"propertyReferences": {
"ProductAgreementFamily": {
"properties": {
"familyId": {
"type": "string",
"description": "familyId of that agreement.",
"required": true,
"hasAdditionalProperties": true
},
"familyName": {
"type": "string",
"description": "FamilyName of that agreement Family id.",
"required": false,
"hasAdditionalProperties": true
}
}
}
},
"reference": "ProductAgreementFamily"
}
but the new one doesn't have it, it's an empty object:
"propertyReferences": {}
This is the data, that we get from each operation to display model/schema.
Maybe, you have any ideas, what have been changes in the model in v0.5?
Thanks.
from angular-swagger-ui.
Old component was modifying data passed as argument, it was dirty so it has been cleaned.
Please give a full example of how you use it (swagger spec, spec version, html and js)
from angular-swagger-ui.
We decided to try different approach.
Thank you for your help! Really appreciate it and your quick responses.
Thank you!
from angular-swagger-ui.
Related Issues (20)
- render curl
- Html5 UI-router compatibiltiy HOT 1
- URL Parse Error when adding swagger-ui div HOT 2
- Publish older version on npm HOT 2
- Unable to npm install [email protected] HOT 3
- Node 8 support HOT 2
- Issue with rendering multiple api key in angular-swagger-ui HOT 3
- how to validate yaml by schema? HOT 1
- Syntax Error cant show petstore example HOT 8
- Question: Benefits & Comparisons HOT 2
- doesn't it support external references? HOT 4
- always the same model and sample when operationId is not specified HOT 3
- api key authorization configuration thru swaggerUiAuthProvider.credentials not working HOT 5
- Swagger UI page unresponsive for large swagger json HOT 6
- have a config to expand/list operations on load HOT 1
- Unknown provider: $swaggerTranslatorProvider HOT 1
- swagger ui fails to show sample response with items in response HOT 1
- Angular 7 support? HOT 2
- how to avoid sanitize? HOT 1
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 angular-swagger-ui.