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
3 changes: 1 addition & 2 deletions mintlify/openapi.yaml

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

3 changes: 1 addition & 2 deletions openapi.yaml

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

3 changes: 1 addition & 2 deletions openapi/components/schemas/vasps/Vasp.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
type: object
required:
- vaspName
Comment on lines 2 to 3

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Empty URLs Remain Invalid

When the upstream directory returns url: "", removing url from required does not make that present value optional or valid; it still violates format: uri, causing strict response validators and generated clients that enforce URI formatting to reject real directory entries.

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/vasps/Vasp.yaml
Line: 2-3

Comment:
**Empty URLs Remain Invalid**

When the upstream directory returns `url: ""`, removing `url` from `required` does not make that present value optional or valid; it still violates `format: uri`, causing strict response validators and generated clients that enforce URI formatting to reject real directory entries.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i just added this field its fine

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Fair enough — making url optional is the right call if the upstream returns empty strings on most entries. My concern about format: uri rejecting "" still technically stands (an empty string isn't a valid URI), but if your validators/generated clients are lenient about format enforcement on optional fields, or you handle empty strings at the application layer, that's your call to make.

Happy to drop this.

- url
properties:
vaspName:
type: string
Expand All @@ -12,7 +11,7 @@ properties:
url:
type: string
format: uri
description: The VASP's website.
description: The VASP's website, when known.
example: https://www.kraken.com
description: >-
A Virtual Asset Service Provider (VASP) — an exchange or other custodial
Expand Down
Loading