-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5f6ae95
Showing
29,813 changed files
with
851,228 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
developer.sailpoint.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=/ambassadors"> | ||
<link rel="canonical" href="/ambassadors" /> | ||
</head> | ||
<script> | ||
window.location.href = '/ambassadors' + window.location.search + window.location.hash; | ||
</script> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="refresh" content="0; url=/ambassadors"> | ||
<link rel="canonical" href="/ambassadors" /> | ||
</head> | ||
<script> | ||
window.location.href = '/ambassadors' + window.location.search + window.location.hash; | ||
</script> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// look for and remove all \r\n instances | ||
// also look for and remove all ':' instances\ | ||
// also find any missing "summary" tags on apis -- public whatif, arm2 supports dashboard | ||
|
||
// look for any missing properties: "properties": {} | ||
// look for any missing schema objects: "in": "query", swagger-provisioning/export, | ||
|
||
const fs = require('fs'); | ||
|
||
const currentTags = [] | ||
|
||
const iterate = (obj) => { | ||
|
||
for (var key of Object.keys(obj)) { | ||
if (key === 'tags') { | ||
if(currentTags.includes(obj[key][0]) === false && typeof obj[key][0] === 'string') { | ||
currentTags.push(obj[key][0]) | ||
console.log(`key: ${key}, value: ${obj[key]}`) | ||
} | ||
} | ||
if (typeof obj[key] === 'object' && obj[key] !== null) { | ||
iterate(obj[key]) | ||
} | ||
} | ||
|
||
} | ||
|
||
let rawdata = fs.readFileSync('static/arm-api/swagger-utilization-tracking.json'); | ||
let student = JSON.parse(rawdata); | ||
|
||
iterate(student) | ||
|
||
let tags = {"tags": []} | ||
|
||
for (let tag of currentTags) { | ||
tags["tags"].push({"name": tag}) | ||
} | ||
|
||
console.log(JSON.stringify(tags)) | ||
|
||
// "tags": [ | ||
// { | ||
// "name": "Agent" | ||
// }, | ||
// { | ||
// "name": "AgentInstruction" | ||
// } | ||
// ], |
Oops, something went wrong.