Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/dummy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ on:
pull_request:
paths-ignore:
- 'openapi.yaml'
- 'openapi/**'
- 'mintlify/**'
- '.markdownlint.json'
merge_group:
paths-ignore:
- 'openapi.yaml'
- 'openapi/**'
- 'mintlify/**'
- '.markdownlint.json'

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
branches: [ main ]
paths:
- 'openapi.yaml'
- 'openapi/**'
- '.markdownlint.json'
- 'mintlify/**'
pull_request:
branches: [ main ]
paths:
- 'openapi.yaml'
- 'openapi/**'
- '.markdownlint.json'
- 'mintlify/**'
# Allow manual triggering
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/openapi-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ on:
branches: [ main ]
paths:
- 'openapi.yaml'
- 'openapi/**'
- 'mintlify/**'
pull_request:
branches: [ main ]
paths:
- 'openapi.yaml'
- 'openapi/**'
- 'mintlify/**'
# Allow manual triggering
workflow_dispatch:
Expand All @@ -36,3 +38,11 @@ jobs:

- name: Build documentation
run: make build

- name: Check compiled OpenAPI is up to date
run: |
if ! git diff --exit-code openapi.yaml mintlify/openapi.yaml; then
echo "ERROR: Compiled openapi.yaml is out of sync with source files in openapi/."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message only mentions openapi.yaml, but the git diff check on line 44 validates both openapi.yaml and mintlify/openapi.yaml. If only mintlify/openapi.yaml is out of sync, this message will be misleading.

Suggested change
echo "ERROR: Compiled openapi.yaml is out of sync with source files in openapi/."
echo "ERROR: Compiled openapi.yaml or mintlify/openapi.yaml is out of sync with source files in openapi/."
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/openapi-build.yml
Line: 45

Comment:
The error message only mentions `openapi.yaml`, but the `git diff` check on line 44 validates both `openapi.yaml` and `mintlify/openapi.yaml`. If only `mintlify/openapi.yaml` is out of sync, this message will be misleading.

```suggestion
            echo "ERROR: Compiled openapi.yaml or mintlify/openapi.yaml is out of sync with source files in openapi/."
```

How can I resolve this? If you propose a fix, please make it concise.

echo "Run 'make build' locally and commit the result."
exit 1
fi
2 changes: 1 addition & 1 deletion mintlify/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openapi/components/schemas/quotes/PurposeOfPayment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type: string
description: >-
The purpose of the payment. This may be required when sending to certain
geographies such as India.
geographies (e.g. India).
enum:
- GIFT
- SELF
Expand Down
Loading