From @zsimo on August 3, 2016 16:17
Swagger File
{
"swagger": "2.0",
"info": {
"title": "Test",
"description": "Test",
"version": "1.0.0"
},
"host": "localhost",
"schemes": [
"http"
],
"basePath": "/services/search",
"paths": {
"/institutions": {
"post": {
"produces": [
"application/json"
],
"parameters": [
{
"name": "value",
"in": "query",
"type": "string"
}
],
"responses": {
"200": {
"description": "Records found",
"schema": {
"$ref": "#/definitions/QuickSearchRecords"
}
},
"400": {
"description": "Invalid parameters"
},
"404": {
"description": "No record found"
},
"500": {
"description": "Unexpected error"
}
}
}
}
},
"definitions": {
"QuickSearchRecords": {
"type": "array",
"items": {
"$ref": "#/definitions/QuickSearchRecord"
}
},
"QuickSearchRecord": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"label": {
"type": "string"
},
"count": {
"type": "integer"
}
}
}
}
}
Issue
Hello!
It seems Webpack (I'm using 1.13.1) fail to manage AMD syntax: by changing the source code, forcing to use CommonJs syntax Webpack succeeds in compiling the scripts. Can you please try/fix?
Thanks!
Copied from original issue: swagger-api/swagger-editor#1035
From @zsimo on August 3, 2016 16:17
Swagger File
{ "swagger": "2.0", "info": { "title": "Test", "description": "Test", "version": "1.0.0" }, "host": "localhost", "schemes": [ "http" ], "basePath": "/services/search", "paths": { "/institutions": { "post": { "produces": [ "application/json" ], "parameters": [ { "name": "value", "in": "query", "type": "string" } ], "responses": { "200": { "description": "Records found", "schema": { "$ref": "#/definitions/QuickSearchRecords" } }, "400": { "description": "Invalid parameters" }, "404": { "description": "No record found" }, "500": { "description": "Unexpected error" } } } } }, "definitions": { "QuickSearchRecords": { "type": "array", "items": { "$ref": "#/definitions/QuickSearchRecord" } }, "QuickSearchRecord": { "type": "object", "properties": { "name": { "type": "string" }, "label": { "type": "string" }, "count": { "type": "integer" } } } } }Issue
Hello!
It seems Webpack (I'm using 1.13.1) fail to manage AMD syntax: by changing the source code, forcing to use CommonJs syntax Webpack succeeds in compiling the scripts. Can you please try/fix?
Thanks!
Copied from original issue: swagger-api/swagger-editor#1035