Skip to content

Commit d12e4bb

Browse files
Add Test files
1 parent 51b37fd commit d12e4bb

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

.github/workflows/api-linter.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: "Run Spectral API Linter"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
spectral_workflow:
10+
name: Lint OpenAPI
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Checkout the pull request to run Spectral on
14+
- name: Checkout PR branch
15+
uses: actions/checkout@v2
16+
with:
17+
ref: ${{ github.ref }}
18+
19+
# Checkout custom spectral action to comment issues to the PR
20+
- name: Checkout Spectral Action
21+
uses: actions/checkout@v2
22+
with:
23+
repository: sailpoint-oss/github-spectral-action
24+
path: spectral-comment-action
25+
ref: main
26+
27+
# Install node and run npm install on spectral action to install required packages
28+
- name: Use Node.js
29+
uses: actions/setup-node@v1
30+
with:
31+
node-version: "12.x"
32+
- run: |
33+
ls -al
34+
cd spectral-comment-action
35+
npm ci
36+
37+
# Run get-changed-files step to get all files changed in the PR as a comma seperated list for the spectral linter action to process with our rulesets
38+
- id: files
39+
with:
40+
format: "csv"
41+
uses: jitterbit/get-changed-files@v1
42+
43+
# Run the spectral linter action and recieve a comment on the PR for any issues the linter found
44+
- name: Spectral comment
45+
uses: ./spectral-comment-action/
46+
with:
47+
github-token: ${{ secrets.GITHUB_TOKEN }}
48+
file-glob: ${{ steps.files.outputs.all }}
49+
spectral-root-ruleset: http://raw.githubusercontent.com/sailpoint-oss/api-linter/main/root-ruleset.yaml
50+
spectral-path-ruleset: http://raw.githubusercontent.com/sailpoint-oss/api-linter/main/path-ruleset.yaml
51+
spectral-schema-ruleset: http://raw.githubusercontent.com/sailpoint-oss/api-linter/main/schema-ruleset.yaml

api-specs/src/main/yaml/v3/sailpoint-api.v3.yaml

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Replaced by TargetSummary.yaml
2+
type: object
3+
nullable: true
4+
properties:
5+
id:
6+
type: string
7+
description: ID of this identity summary
8+
example: ff80818155fe8c080155fe8d925b0316
9+
name:
10+
type: string
11+
description: Human-readable display name of identity
12+
example: SailPoint Services
13+
identityId:
14+
type: string
15+
description: ID of the identity that this summary represents
16+
example: c15b9f5cca5a4e9599eaa0e64fa921bd
17+
completed:
18+
type: boolean
19+
description: Indicates if all access items for this summary have been decided on

0 commit comments

Comments
 (0)