-
Notifications
You must be signed in to change notification settings - Fork 63
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
PDF: support document description in request header #268
Open
chgeo
wants to merge
1
commit into
SAP:main
Choose a base branch
from
chgeo:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -26,11 +26,22 @@ | |
}, | ||
"FeaturesType": { | ||
"$Kind": "ComplexType", | ||
"DocumentDescriptionLocation": { | ||
"$Type": "PDF.DocumentDescriptionLocation", | ||
"$Nullable": true, | ||
"$DefaultValue": 0, | ||
"@Core.Description": "Whether the document description is given in an entity set or in a request header", | ||
"@Core.LongDescription": "If value is 'entitySet', also set property 'DocumentDescriptionReference' and 'DocumentDescriptionCollection'. If value is 'header', set request header 'SAP-Document-Description' to base64-encoded JSON string of the document description." | ||
}, | ||
"DocumentDescriptionReference": { | ||
"$Nullable": true, | ||
"@Core.IsURL": true, | ||
"@Core.Description": "Reference of the Service for the DocumentDescription" | ||
}, | ||
"DocumentDescriptionCollection": { "@Core.Description": "Name of entity set containing the DocumentDescription" }, | ||
"DocumentDescriptionCollection": { | ||
"$Nullable": true, | ||
"@Core.Description": "Name of entity set containing the DocumentDescription" | ||
}, | ||
"ArchiveFormat": { | ||
"$Type": "Edm.Boolean", | ||
"$DefaultValue": false, | ||
|
@@ -81,6 +92,13 @@ | |
"@Core.Description": "Maximum result size", | ||
"@Core.LongDescription": "Max result size for PDF documents. Used if $top has been provided and $top > ResultSizeMaximum" | ||
} | ||
}, | ||
"DocumentDescriptionLocation": { | ||
"$Kind": "EnumType", | ||
"entitySet": 0, | ||
"[email protected]": "Document description is given as entity set", | ||
"header": 1, | ||
"[email protected]": "Document description is given in a request header" | ||
} | ||
} | ||
} |
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -40,11 +40,17 @@ | |||||||||||||||||||
</Term> | ||||||||||||||||||||
|
||||||||||||||||||||
<ComplexType Name="FeaturesType"> | ||||||||||||||||||||
<Property Name="DocumentDescriptionReference" Type="Edm.String" Nullable="false"> | ||||||||||||||||||||
<Property Name="DocumentDescriptionLocation" Type="PDF.DocumentDescriptionLocation" DefaultValue="0"> | ||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||
<Annotation Term="Core.Description" String="Whether the document description is given in an entity set or in a request header" /> | ||||||||||||||||||||
<Annotation Term="Core.LongDescription"> | ||||||||||||||||||||
<String>If value is 'entitySet', also set property 'DocumentDescriptionReference' and 'DocumentDescriptionCollection'. If value is 'header', set request header 'SAP-Document-Description' to base64-encoded JSON string of the document description.</String> | ||||||||||||||||||||
</Annotation> | ||||||||||||||||||||
</Property> | ||||||||||||||||||||
<Property Name="DocumentDescriptionReference" Type="Edm.String"> | ||||||||||||||||||||
<Annotation Term="Core.IsURL" Bool="true" /> | ||||||||||||||||||||
<Annotation Term="Core.Description" String="Reference of the Service for the DocumentDescription" /> | ||||||||||||||||||||
</Property> | ||||||||||||||||||||
<Property Name="DocumentDescriptionCollection" Type="Edm.String" Nullable="false"> | ||||||||||||||||||||
<Property Name="DocumentDescriptionCollection" Type="Edm.String"> | ||||||||||||||||||||
<Annotation Term="Core.Description" String="Name of entity set containing the DocumentDescription" /> | ||||||||||||||||||||
</Property> | ||||||||||||||||||||
Comment on lines
+53
to
55
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||
<Property Name="ArchiveFormat" Type="Edm.Boolean" Nullable="false" DefaultValue="false"> | ||||||||||||||||||||
|
@@ -100,6 +106,14 @@ | |||||||||||||||||||
</Annotation> | ||||||||||||||||||||
</Property> | ||||||||||||||||||||
</ComplexType> | ||||||||||||||||||||
<EnumType Name="DocumentDescriptionLocation"> | ||||||||||||||||||||
<Member Name="entitySet" Value="0"> | ||||||||||||||||||||
<Annotation Term="Core.Description" String="Document description is given as entity set" /> | ||||||||||||||||||||
</Member> | ||||||||||||||||||||
<Member Name="header" Value="1"> | ||||||||||||||||||||
<Annotation Term="Core.Description" String="Document description is given in a request header" /> | ||||||||||||||||||||
</Member> | ||||||||||||||||||||
</EnumType> | ||||||||||||||||||||
Comment on lines
+109
to
+116
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||
|
||||||||||||||||||||
</Schema> | ||||||||||||||||||||
</edmx:DataServices> | ||||||||||||||||||||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not sure here if value
0
is correct. Would rather like to read itentitySet
.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.
If this points to an enum, don't we need a value help for it?
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.
I haven't seen value helps in the other documents either, so would guess this is not a use case here.
For concrete
DocumentDescription...
properties, they are not user-facing, but only filled programmatically. One application, for example, will setDocumentDescriptionLocation
toheader
, the other will set it toentitySet
. But it's not the user that decides it.