-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: replace backslashes with forward slashes in refs on Windows when…
… splitting (#1903) * fix: replace backslashes with forward slashes in refs on Windows when splitting * update tests * Update .changeset/eighty-dolls-sniff.md * Update __tests__/smoke/run-smoke.sh * remove redundant non-null assertion * improve the build-docs smoke test check --------- Co-authored-by: Jacek Łękawa <[email protected]>
- Loading branch information
Showing
91 changed files
with
2,337 additions
and
27 deletions.
There are no files selected for viewing
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,5 @@ | ||
--- | ||
"@redocly/cli": patch | ||
--- | ||
|
||
Fixed a problem where the `split` command produced backslashes instead of forward slashes in `$ref`s on Windows. |
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
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
File renamed without changes.
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
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
__tests__/smoke/pre-split/museum/components/examples/BuyEventTicketsRequestExample.yaml
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,6 @@ | ||
summary: Special event ticket | ||
value: | ||
ticketType: general | ||
eventId: dad4bce8-f5cb-4078-a211-995864315e39 | ||
ticketDate: '2023-09-05' | ||
email: [email protected] |
8 changes: 8 additions & 0 deletions
8
__tests__/smoke/pre-split/museum/components/examples/BuyEventTicketsResponseExample.yaml
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,8 @@ | ||
summary: Special event ticket | ||
value: | ||
message: Museum special event ticket purchased | ||
ticketId: b811f723-17b2-44f7-8952-24b03e43d8a9 | ||
eventName: Mermaid Treasure Identification and Analysis | ||
ticketType: event | ||
ticketDate: '2023-09-05' | ||
confirmationCode: ticket-event-9c55eg-8v82a |
5 changes: 5 additions & 0 deletions
5
__tests__/smoke/pre-split/museum/components/examples/BuyGeneralTicketsRequestExample.yaml
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,5 @@ | ||
summary: General entry ticket | ||
value: | ||
ticketType: general | ||
ticketDate: '2023-09-07' | ||
email: [email protected] |
7 changes: 7 additions & 0 deletions
7
__tests__/smoke/pre-split/museum/components/examples/BuyGeneralTicketsResponseExample.yaml
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,7 @@ | ||
summary: General entry ticket | ||
value: | ||
message: Museum general entry ticket purchased | ||
ticketId: 382c0820-0530-4f4b-99af-13811ad0f17a | ||
ticketType: general | ||
ticketDate: '2023-09-07' | ||
confirmationCode: ticket-general-e5e5c6-dce78 |
11 changes: 11 additions & 0 deletions
11
__tests__/smoke/pre-split/museum/components/examples/CreateSpecialEventRequestExample.yaml
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 @@ | ||
summary: Create special event | ||
value: | ||
name: Mermaid Treasure Identification and Analysis | ||
location: Under the seaaa 🦀 🎶 🌊. | ||
eventDescription: >- | ||
Join us as we review and classify a rare collection of 20 thingamabobs, | ||
gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel. | ||
dates: | ||
- '2023-09-05' | ||
- '2023-09-08' | ||
price: 0 |
12 changes: 12 additions & 0 deletions
12
__tests__/smoke/pre-split/museum/components/examples/CreateSpecialEventResponseExample.yaml
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,12 @@ | ||
summary: Special event created | ||
value: | ||
eventId: dad4bce8-f5cb-4078-a211-995864315e39 | ||
name: Mermaid Treasure Identification and Analysis | ||
location: Under the seaaa 🦀 🎶 🌊. | ||
eventDescription: >- | ||
Join us as we review and classify a rare collection of 20 thingamabobs, | ||
gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel. | ||
dates: | ||
- '2023-09-05' | ||
- '2023-09-08' | ||
price: 30 |
32 changes: 32 additions & 0 deletions
32
__tests__/smoke/pre-split/museum/components/examples/GetMuseumHoursResponseExample.yaml
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,32 @@ | ||
summary: Get hours response | ||
value: | ||
- date: '2023-09-11' | ||
timeOpen: '09:00' | ||
timeClose: '18:00' | ||
- date: '2023-09-12' | ||
timeOpen: '09:00' | ||
timeClose: '18:00' | ||
- date: '2023-09-13' | ||
timeOpen: '09:00' | ||
timeClose: '18:00' | ||
- date: '2023-09-14' | ||
timeOpen: '09:00' | ||
timeClose: '18:00' | ||
- date: '2023-09-15' | ||
timeOpen: '10:00' | ||
timeClose: '16:00' | ||
- date: '2023-09-18' | ||
timeOpen: '09:00' | ||
timeClose: '18:00' | ||
- date: '2023-09-19' | ||
timeOpen: '09:00' | ||
timeClose: '18:00' | ||
- date: '2023-09-20' | ||
timeOpen: '09:00' | ||
timeClose: '18:00' | ||
- date: '2023-09-21' | ||
timeOpen: '09:00' | ||
timeClose: '18:00' | ||
- date: '2023-09-22' | ||
timeOpen: '10:00' | ||
timeClose: '16:00' |
11 changes: 11 additions & 0 deletions
11
__tests__/smoke/pre-split/museum/components/examples/GetSpecialEventResponseExample.yaml
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 @@ | ||
summary: Get special event | ||
value: | ||
eventId: 6744a0da-4121-49cd-8479-f8cc20526495 | ||
name: Time Traveler Tea Party | ||
location: Temporal Tearoom | ||
eventDescription: Sip tea with important historical figures. | ||
dates: | ||
- '2023-11-18' | ||
- '2023-11-25' | ||
- '2023-12-02' | ||
price: 60 |
93 changes: 93 additions & 0 deletions
93
__tests__/smoke/pre-split/museum/components/examples/ListSpecialEventsResponseExample.yaml
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,93 @@ | ||
summary: List of special events | ||
value: | ||
- eventId: f3e0e76e-e4a8-466e-ab9c-ae36c15b8e97 | ||
name: Sasquatch Ballet | ||
location: Seattle... probably | ||
eventDescription: >- | ||
They're big, they're hairy, but they're also graceful. Come learn how the | ||
biggest feet can have the lightest touch. | ||
dates: | ||
- '2023-12-15' | ||
- '2023-12-22' | ||
price: 40 | ||
- eventId: 2f14374a-9c65-4ee5-94b7-fba66d893483 | ||
name: Solar Telescope Demonstration | ||
location: Far from the sun. | ||
eventDescription: Look at the sun without going blind! | ||
dates: | ||
- '2023-09-07' | ||
- '2023-09-14' | ||
price: 50 | ||
- eventId: 6aaa61ba-b2aa-4868-b803-603dbbf7bfdb | ||
name: Cook like a Caveman | ||
location: Fire Pit on East side | ||
eventDescription: Learn to cook on an open flame. | ||
dates: | ||
- '2023-11-10' | ||
- '2023-11-17' | ||
- '2023-11-24' | ||
price: 5 | ||
- eventId: 602b75e1-5696-4ab8-8c7a-f9e13580f910 | ||
name: Underwater Basket Weaving | ||
location: Rec Center Pool next door. | ||
eventDescription: Learn to weave baskets underwater. | ||
dates: | ||
- '2023-09-12' | ||
- '2023-09-15' | ||
price: 15 | ||
- eventId: dad4bce8-f5cb-4078-a211-995864315e39 | ||
name: Mermaid Treasure Identification and Analysis | ||
location: Room Sea-12 | ||
eventDescription: >- | ||
Join us as we review and classify a rare collection of 20 thingamabobs, | ||
gadgets, gizmos, whoosits, and whatsits — kindly donated by Ariel. | ||
dates: | ||
- '2023-09-05' | ||
- '2023-09-08' | ||
price: 30 | ||
- eventId: 6744a0da-4121-49cd-8479-f8cc20526495 | ||
name: Time Traveler Tea Party | ||
location: Temporal Tearoom | ||
eventDescription: Sip tea with important historical figures. | ||
dates: | ||
- '2023-11-18' | ||
- '2023-11-25' | ||
- '2023-12-02' | ||
price: 60 | ||
- eventId: 3be6453c-03eb-4357-ae5a-984a0e574a54 | ||
name: Pirate Coding Workshop | ||
location: Computer Room | ||
eventDescription: >- | ||
Captain Blackbeard shares his love of the C...language. And possibly | ||
Arrrrr (R lang). | ||
dates: | ||
- '2023-10-29' | ||
- '2023-10-30' | ||
- '2023-10-31' | ||
price: 45 | ||
- eventId: 9d90d29a-2af5-4206-97d9-9ea9ceadcb78 | ||
name: Llama Street Art Through the Ages | ||
location: Auditorium | ||
eventDescription: Llama street art?! Alpaca my bags -- let's go! | ||
dates: | ||
- '2023-10-29' | ||
- '2023-10-30' | ||
- '2023-10-31' | ||
price: 45 | ||
- eventId: a3c7b2c4-b5fb-4ef7-9322-00a919864957 | ||
name: The Great Parrot Debate | ||
location: Outdoor Amphitheatre | ||
eventDescription: See leading parrot minds discuss important geopolitical issues. | ||
dates: | ||
- '2023-11-03' | ||
- '2023-11-10' | ||
price: 35 | ||
- eventId: b92d46b7-4c5d-422b-87a5-287767e26f29 | ||
name: Eat a Bunch of Corn | ||
location: Cafeteria | ||
eventDescription: We accidentally bought too much corn. Please come eat it. | ||
dates: | ||
- '2023-11-10' | ||
- '2023-11-17' | ||
- '2023-11-24' | ||
price: 5 |
4 changes: 4 additions & 0 deletions
4
__tests__/smoke/pre-split/museum/components/examples/UpdateSpecialEventRequestExample.yaml
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,4 @@ | ||
summary: Update special event request | ||
value: | ||
location: On the beach. | ||
price: 15 |
12 changes: 12 additions & 0 deletions
12
__tests__/smoke/pre-split/museum/components/examples/UpdateSpecialEventResponseExample.yaml
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,12 @@ | ||
summary: Update special event | ||
value: | ||
eventId: dad4bce8-f5cb-4078-a211-995864315e39 | ||
name: Mermaid Treasure Identification and Analysis | ||
location: On the beach. | ||
eventDescription: >- | ||
Join us as we review and classify a rare collection of 20 thingamabobs, | ||
gadgets, gizmos, whoosits, and whatsits, kindly donated by Ariel. | ||
dates: | ||
- '2023-09-05' | ||
- '2023-09-08' | ||
price: 15 |
9 changes: 9 additions & 0 deletions
9
__tests__/smoke/pre-split/museum/components/parameters/EndDate.yaml
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,9 @@ | ||
name: endDate | ||
in: query | ||
description: >- | ||
End of a date range to retrieve special events for. Defaults to 7 days after | ||
`startDate`. | ||
schema: | ||
type: string | ||
format: date | ||
example: '2023-04-18' |
8 changes: 8 additions & 0 deletions
8
__tests__/smoke/pre-split/museum/components/parameters/EventId.yaml
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,8 @@ | ||
name: eventId | ||
in: path | ||
description: Identifier for a special event. | ||
required: true | ||
schema: | ||
type: string | ||
format: uuid | ||
example: dad4bce8-f5cb-4078-a211-995864315e39 |
8 changes: 8 additions & 0 deletions
8
__tests__/smoke/pre-split/museum/components/parameters/PaginationLimit.yaml
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,8 @@ | ||
name: limit | ||
in: query | ||
description: Number of days per page. | ||
schema: | ||
type: integer | ||
default: 10 | ||
maximum: 30 | ||
example: 15 |
7 changes: 7 additions & 0 deletions
7
__tests__/smoke/pre-split/museum/components/parameters/PaginationPage.yaml
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,7 @@ | ||
name: page | ||
in: query | ||
description: Page number to retrieve. | ||
schema: | ||
type: integer | ||
default: 1 | ||
example: 2 |
9 changes: 9 additions & 0 deletions
9
__tests__/smoke/pre-split/museum/components/parameters/StartDate.yaml
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,9 @@ | ||
name: startDate | ||
in: query | ||
description: >- | ||
Starting date to retrieve future operating hours from. Defaults to today's | ||
date. | ||
schema: | ||
type: string | ||
format: date | ||
example: '2023-02-23' |
8 changes: 8 additions & 0 deletions
8
__tests__/smoke/pre-split/museum/components/parameters/TicketId.yaml
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,8 @@ | ||
name: ticketId | ||
in: path | ||
description: Identifier for a ticket to a museum event. Used to generate ticket image. | ||
required: true | ||
schema: | ||
type: string | ||
format: uuid | ||
example: a54a57ca-36f8-421b-a6b4-2e8f26858a4c |
5 changes: 5 additions & 0 deletions
5
__tests__/smoke/pre-split/museum/components/responses/BadRequest.yaml
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,5 @@ | ||
description: Bad request. | ||
content: | ||
application/problem+json: | ||
schema: | ||
$ref: ../schemas/Error.yaml |
5 changes: 5 additions & 0 deletions
5
__tests__/smoke/pre-split/museum/components/responses/NotFound.yaml
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,5 @@ | ||
description: Not found. | ||
content: | ||
application/problem+json: | ||
schema: | ||
$ref: ../schemas/Error.yaml |
5 changes: 5 additions & 0 deletions
5
__tests__/smoke/pre-split/museum/components/responses/Unauthorized.yaml
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,5 @@ | ||
description: Unauthorized. | ||
content: | ||
application/problem+json: | ||
schema: | ||
$ref: ../schemas/Error.yaml |
21 changes: 21 additions & 0 deletions
21
__tests__/smoke/pre-split/museum/components/schemas/BuyMuseumTicketsRequest.yaml
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,21 @@ | ||
description: Request payload used for purchasing museum tickets. | ||
type: object | ||
properties: | ||
ticketType: | ||
$ref: ./TicketType.yaml | ||
eventId: | ||
description: >- | ||
Unique identifier for a special event. Required if purchasing tickets for | ||
the museum's special events. | ||
$ref: ./EventId.yaml | ||
ticketDate: | ||
description: Date that the ticket is valid for. | ||
$ref: ./Date.yaml | ||
email: | ||
$ref: ./Email.yaml | ||
phone: | ||
$ref: ./Phone.yaml | ||
required: | ||
- ticketType | ||
- ticketDate | ||
22 changes: 22 additions & 0 deletions
22
__tests__/smoke/pre-split/museum/components/schemas/BuyMuseumTicketsResponse.yaml
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,22 @@ | ||
description: Details for a museum ticket after a successful purchase. | ||
type: object | ||
properties: | ||
message: | ||
$ref: ./TicketMessage.yaml | ||
eventName: | ||
$ref: ./EventName.yaml | ||
ticketId: | ||
$ref: ./TicketId.yaml | ||
ticketType: | ||
$ref: ./TicketType.yaml | ||
ticketDate: | ||
description: Date the ticket is valid for. | ||
$ref: ./Date.yaml | ||
confirmationCode: | ||
$ref: ./TicketConfirmation.yaml | ||
required: | ||
- message | ||
- ticketId | ||
- ticketType | ||
- ticketDate | ||
- confirmationCode |
Oops, something went wrong.
79b6460
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage report
Test suite run success
839 tests passing in 121 suites.
Report generated by 🧪jest coverage report action from 79b6460