-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Follow up: Regex properties on non-string types #1368
Comments
Looking at api-specs/history/types/common/SearchKeywords.raml
Could @industrian please check if the actual Product definition in api-specs/api/types/product/SuggestionResult.raml is correct of is missing the |
I tested the following and got the same result. #%RAML 1.0 DataType
(package): Product
(docs-uri): https://docs.commercetools.com/api/projects/products-suggestions#suggestionresult
displayName: SuggestionResult
type: object
properties:
/searchKeywords.[a-z]{2}(-[A-Z]{2})?/:
type: array
items:
type: Suggestion |
@gabriele-ct In particular it's in file #%RAML 1.0 DataType
(package): Product
displayName: SuggestionResult
type: object
properties:
/searchKeywords.[a-z]{2}(-[A-Z]{2})?/:
type: array
items: Suggestion
description: Results of a suggestion.
What we would like to have is
with Suggestion being a link to the rendered type. Currently we are getting
|
ramldoc output for this case: #%RAML 1.0 DataType
displayName: SuggestionResult
type: object
(builtinType): object
(package): "Product"
(docs-uri): "https://docs.commercetools.com/http-api-projects-products-suggestions.html#suggestionresult"
properties:
/searchKeywords.[a-z]{2}(-[A-Z]{2})?/:
type: array
items:
type: Suggestion
(builtinType): array
required: true
(inherited): false We need to apply the same logic for the regex types as we do for the other types to display the right type. Line 61 in 558ae40
|
Original issue: #1357
In a recent update, this functionality was added to the kit.
The description in a work-in-progress document appears to be "off" though:
It's "Array of Any object property matching this regular expression" when it should be "Array of Suggestion":
This was discussed at the Team weekly on 21 September.
The text was updated successfully, but these errors were encountered: