Skip to content

Commit

Permalink
Merge branch 'master' into bug/1413-import-file-dialog-style-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shockey authored Aug 4, 2017
2 parents fc58d9d + 58029b8 commit bc80603
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 24 deletions.
6 changes: 3 additions & 3 deletions dist/swagger-editor-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/swagger-editor.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "swagger-editor",
"description": "Swagger Editor",
"version": "3.1.0",
"version": "3.1.1",
"main": "dist/swagger-editor.js",
"repository": "[email protected]:swagger-api/swagger-editor.git",
"license": "Apache-2.0",
Expand Down Expand Up @@ -57,7 +57,7 @@
"react-transition-group": "^1.1.1",
"redux": "^3.x.x",
"swagger-client": "3.0.19",
"swagger-ui": "3.1.0",
"swagger-ui": "3.1.2",
"whatwg-fetch": "^2.0.3"
},
"devDependencies": {
Expand Down
42 changes: 25 additions & 17 deletions src/plugins/validation/structural-validation/oas3-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ export default {
],
"properties": {
"url": {
"type": "string",
"format": "uri-reference"
"type": "string"
},
"description": {
"type": "string"
Expand All @@ -168,7 +167,10 @@ export default {
],
"properties": {
"enum": {
"type": "string"
"type": "array",
"items": {
"type": "string"
}
},
"default": {
"type": "string"
Expand Down Expand Up @@ -464,17 +466,14 @@ export default {
}
},
"items": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/Schema"
},
{
"$ref": "#/definitions/Reference"
}
]
}
"oneOf": [
{
"$ref": "#/definitions/Schema"
},
{
"$ref": "#/definitions/Reference"
}
]
},
"properties": {
"type": "object",
Expand Down Expand Up @@ -1041,7 +1040,14 @@ export default {
"callbacks": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/Callback"
"oneOf": [
{
"$ref": "#/definitions/Callback"
},
{
"$ref": "#/definitions/Reference"
}
]
}
},
"deprecated": {
Expand Down Expand Up @@ -2087,7 +2093,7 @@ export default {
"type": "object",
"required": [
"type",
"openIdConnect"
"openIdConnectUrl"
],
"properties": {
"type": {
Expand Down Expand Up @@ -2311,7 +2317,9 @@ export default {
},
"Callback": {
"type": "object",
"additionalProperties": false,
"additionalProperties": {
"$ref": "#/definitions/PathItem"
},
"patternProperties": {
"^x-": {
}
Expand Down
2 changes: 1 addition & 1 deletion src/standalone/topbar/topbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default class Topbar extends React.Component {

fileReader.onload = fileLoadedEvent => {
let textFromFileLoaded = fileLoadedEvent.target.result
this.props.specActions.updateSpec(textFromFileLoaded)
this.props.specActions.updateSpec(YAML.safeDump(YAML.safeLoad(textFromFileLoaded)))
this.hideModal()
}

Expand Down

0 comments on commit bc80603

Please sign in to comment.