-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display regex array type descriptions correctly (#1959)
* chore: display regex array types correctly * chore: add changeset --------- Co-authored-by: Gabriele Antonini <106664971+gabriele-ct@users.noreply.github.com>
- Loading branch information
1 parent
6fad386
commit 0c5a24c
Showing
5 changed files
with
25 additions
and
1 deletion.
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 @@ | ||
--- | ||
'@commercetools-docs/gatsby-theme-api-docs': patch | ||
--- | ||
|
||
Display regex types that are declared as an array type correctly. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#%RAML 1.0 Library | ||
usage: Regex properties test types. | ||
|
||
uses: | ||
objects: objects.raml | ||
|
||
types: | ||
RegexPropertiesTypeArray: | ||
description: This is a type that can have arbitrary properties as long as they match a certain expression | ||
type: object | ||
properties: | ||
/^[a-z]{2}(-[A-Z]{2})?$/: | ||
description: Regular expression property with an array type. To be displayed as "Array of ObjectTestType". The Slashes should appear in blue. | ||
type: array | ||
items: objects.ObjectTestType |
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