Skip to content

Commit

Permalink
chore: add schema validation to yaml for documentation (#2518)
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe committed Feb 14, 2024
1 parent 2a32857 commit 057717c
Show file tree
Hide file tree
Showing 97 changed files with 750 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"stylelint.reportNeedlessDisables": true,
"stylelint.validate": ["css", "postcss"],
"yaml.schemas": {
"~/.vscode/extensions/atlassian.atlascode-3.0.4/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml"
"~/.vscode/extensions/atlassian.atlascode-3.0.4/resources/schemas/pipelines-schema.json": "bitbucket-pipelines.yml",
"./schemas/documentation.schema.json": ["/metadata/*.yml", "/metadata/*.yaml"]
}
}
1 change: 1 addition & 0 deletions components/accordion/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/actionbar/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/actionbutton/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/actiongroup/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/alertbanner/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/alertdialog/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/asset/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/assetcard/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/assetlist/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/avatar/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/badge/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/breadcrumb/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/button/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/buttongroup/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/calendar/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/card/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/checkbox/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/clearbutton/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/closebutton/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/coachindicator/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/coachmark/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/colorarea/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/colorhandle/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/colorloupe/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/colorslider/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/colorwheel/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/combobox/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/commons/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"executor": "nx:noop"
},
"lint": {},
"validate": {},

"test": {
"executor": "nx:noop"
Expand Down
1 change: 1 addition & 0 deletions components/contextualhelp/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/cyclebutton/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/datepicker/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/dial/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
7 changes: 3 additions & 4 deletions components/dialog/metadata/dialog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ examples:
</div>
- id: dialog-scrolling
name: Dialog - Scrolling
dnaStatus: Contribution
status: Unverified
status: Contribution
description: A dialog without `.spectrum-Dialog--alert` can expand to a larger size to house larger contents.
demoClassName: spectrum-CSSExample-example--overlay
markup: |
Expand Down Expand Up @@ -201,7 +200,7 @@ examples:
</div>
- id: dialog-fullscreen
name: Dialog - Fullscreen
status: Unverified
status: Contribution
description: A fullscreen dialog will automatically fill almost all of the available screen space.
demoClassName: spectrum-CSSExample-example--overlay
markup: |
Expand Down Expand Up @@ -258,7 +257,7 @@ examples:
</div>
- id: dialog-fullscreen
name: Dialog - Fullscreen Takeover
status: Unverified
status: Contribution
description: A fullscreen takeover dialog will fill all of the available screen space.
demoClassName: spectrum-CSSExample-example--overlay
markup: |
Expand Down
1 change: 1 addition & 0 deletions components/dialog/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/divider/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/dropindicator/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/dropzone/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/fieldgroup/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/fieldlabel/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/floatingactionbutton/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/helptext/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/icon/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/illustratedmessage/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/infieldbutton/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/inlinealert/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
1 change: 1 addition & 0 deletions components/link/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"clean": {},
"compare": {},
"lint": {},
"validate": {},

"test": {
"defaultConfiguration": "scope"
Expand Down
Loading

0 comments on commit 057717c

Please sign in to comment.