Skip to content

Handling of cross-service references#359

Draft
HeikoTheissen wants to merge 3 commits into
mainfrom
bug/2026-07-06
Draft

Handling of cross-service references#359
HeikoTheissen wants to merge 3 commits into
mainfrom
bug/2026-07-06

Conversation

@HeikoTheissen

@HeikoTheissen HeikoTheissen commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Proposal: Expose external entities as abstract objects:

"com.sap.gateway.default.loandisbursementrequest.v0001.BasicDataLoanDisbursementRequest": {
"description": "External entity",
"type": "object"
},

To generate these additional /components/schemas, the XSL transformations needs to select external type references, which is not straightforward with the current code. With the approach of #291, this can be done as

<xsl:apply-templates
select="/edmx:Edmx/edmx:DataServices/edm:Schema/edm:EntityType
|/edmx:Edmx/edmx:DataServices/edm:Schema/edm:ComplexType
|/edmx:Edmx/edmx:DataServices/edm:Schema/edm:TypeDefinition
|/edmx:Edmx/edmx:DataServices/edm:Schema/edm:EnumType
|/edmx:Edmx/edmx:DataServices/edm:Schema/edm:EntityContainer
|//edm:NavigationProperty[not(@p1:Type)]"
mode="hash">

<xsl:template match="edm:NavigationProperty" mode="hashpair">
<xsl:text>"</xsl:text>
<xsl:value-of select="@p2:Type" />
<xsl:text>":{"description":"External entity","type":"object"}</xsl:text>
</xsl:template>

@HeikoTheissen HeikoTheissen changed the title Cross-service references Handling of cross-service references Jul 6, 2026
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.

1 participant