Skip to content
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

with-search depends on SearchSyntax #292

Closed
wants to merge 3 commits into from
Closed

Conversation

HeikoTheissen
Copy link

No description provided.

@HeikoTheissen HeikoTheissen linked an issue Apr 18, 2024 that may be closed by this pull request
@ralfhandl
Copy link
Contributor

tools/V2-to-V4-CSDL.xsl should now translate sap:searchable="true" into "Searchable=false, SearchSyntax=...Link to SAP search syntax..."

searchRestrictions.Searchable !== false ||
searchRestrictions.SearchSyntax
) {
if (searchRestrictions[voc.Core.Description]) {
Copy link
Contributor

@ralfhandl ralfhandl Apr 18, 2024

Choose a reason for hiding this comment

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

Suggested change
if (searchRestrictions[voc.Core.Description]) {
if (searchRestrictions[voc.Core.Description] || searchRestrictions.SearchSyntax) {

Produce "custom" parameter description also for custom search syntax and don't reference the reuse parameter which in turn links to the OData standard search syntax.

The parameter description should link to the custom search syntax, and it needs a fallback if no Core.Description is present in the search restrictions.

@ralfhandl
Copy link
Contributor

@HeikoTheissen Do we need this PR?

@HeikoTheissen
Copy link
Author

No longer needed since Searchable: true will remain.

@HeikoTheissen HeikoTheissen deleted the alternative-search branch June 24, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow alternate / native search syntax
2 participants