Fixed issue with badly parsed characters for OpenAPI

This commit is contained in:
frikky
2021-06-09 06:06:18 +02:00
parent 5b3c4b7db1
commit 1dddcb5dfc
7 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -2102,7 +2102,7 @@ const AngularWorkflow = (props) => {
// Basically just a stupid if-else :)
const synonyms = {
"id": ["id", "ref", "sourceref", "reference", "sourcereference", "alert id", "case id", "incident id", "service id", "sid", "uid", "uuid"],
"id": ["id", "ref", "sourceref", "reference", "sourcereference", "alert id", "case id", "incident id", "service id", "sid", "uid", "uuid", "team id"],
"title": ["title", "name", "message"],
"description": ["description", "explanation", "story", "details",],
"email": ["mail", "email", "sender", "receiver", "recipient"],
+1 -1
View File
@@ -970,7 +970,7 @@ const AppCreator = (props) => {
const basePath = "/"+(splitBase.slice(3, )).join("/")
const data = {
"swagger": "3.0",
"openapi": "3.0",
"info": {
"title": name,
"description": description,
+1 -1
View File
@@ -1639,7 +1639,7 @@ const Apps = (props) => {
hidden
type="file"
ref={upload}
accept="application/JSON, text/yaml, text/x-yaml, application/x-yaml, application/vnd.yaml"
accept="application/JSON, application/YAML, text/yaml, text/x-yaml, application/x-yaml, application/vnd.yaml"
multiple={false}
onChange={uploadFile}
/>
+2 -2
View File
@@ -68,7 +68,7 @@ const LoginDialog = props => {
}),
)
.catch(error => {
setLoginInfo("Error logging in - please refresh in a minute: ", error)
setLoginInfo("Error logging in - please refresh in a minute ", error)
})
}
@@ -139,7 +139,7 @@ const LoginDialog = props => {
}),
)
.catch(error => {
setLoginInfo("Error in userdata: ", error)
setLoginInfo("Error in from backend: ", error)
});
}
}