Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-adapter-javascript
Commits
bd0feb64
Unverified
Commit
bd0feb64
authored
2 years ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
fix: assign schema to this.schema not promise
parent
8ad9f7d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
dist/protocol.esm.js
dist/protocol.esm.js
+2
-2
dist/protocol.js
dist/protocol.js
+2
-2
src/protocol/index.js
src/protocol/index.js
+2
-2
No files found.
dist/protocol.esm.js
View file @
bd0feb64
...
...
@@ -135,11 +135,11 @@ class GenericSoarProtocol extends GenericProtocol {
let
repository
=
"
https://git.noc.ac.uk/communications-backbone-system/backbone-message-format
"
;
// TODO check this path resolves for tags
let
url
=
`
${
repository
}
/-/raw/
${
version
}
/project/soar/swagger.json`
;
this
.
schema
=
this
.
axios
.
get
(
url
)
return
this
.
axios
.
get
(
url
)
.
then
((
response
)
=>
{
this
.
schema
=
response
.
data
;
return
response
.
data
;
});
return
this
.
schema
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
dist/protocol.js
View file @
bd0feb64
...
...
@@ -137,11 +137,11 @@ class GenericSoarProtocol extends GenericProtocol {
let
repository
=
"
https://git.noc.ac.uk/communications-backbone-system/backbone-message-format
"
;
// TODO check this path resolves for tags
let
url
=
`
${
repository
}
/-/raw/
${
version
}
/project/soar/swagger.json`
;
this
.
schema
=
this
.
axios
.
get
(
url
)
return
this
.
axios
.
get
(
url
)
.
then
((
response
)
=>
{
this
.
schema
=
response
.
data
;
return
response
.
data
;
});
return
this
.
schema
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
src/protocol/index.js
View file @
bd0feb64
...
...
@@ -135,11 +135,11 @@ export class GenericSoarProtocol extends GenericProtocol {
let
repository
=
"
https://git.noc.ac.uk/communications-backbone-system/backbone-message-format
"
;
// TODO check this path resolves for tags
let
url
=
`
${
repository
}
/-/raw/
${
version
}
/project/soar/swagger.json`
;
this
.
schema
=
this
.
axios
.
get
(
url
)
return
this
.
axios
.
get
(
url
)
.
then
((
response
)
=>
{
this
.
schema
=
response
.
data
return
response
.
data
;
});
return
this
.
schema
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment