-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution:
Fixed
-
Affects Version/s:
None
-
Fix Version/s:
None
-
-
-
-
Proposal:
Hide
When mapping properties of a term the target of the mapping MUST be of the type specified in the term definition or a derived type of the specified type, or annotated with the specified type or a subtype of the specified type.
Example vocabulary:
<Schema Namespace="vCard">
<Term Name="Contact" Type="vCard.ContactType" AppliesTo="EntityType,ComplexType" />
<ComplexType Name="ContactType">
<Property Name="PhoneNumbers" Type="Collection(vCard.PhoneNumberType)" />
...
</ComplexType>
<Term Name="PhoneNumber" Type="vCard.PhoneNumberType" AppliesTo="EntityType,ComplexType" />
<ComplexType Name="PhoneNumberType">
<Property Name="Number" Type="String"/>
...
</ComplexType>
</Schema>
Example service with annotations:
<Schema Namespace="SomeService">
<EntityType Name="Customer">
...
<NavigationProperty Name="Phones" Type="Collection(SomeService.Phone)"/>
...
<Annotation Term="vCard.Contact">
<Record>
<PropertyValue Property="PhoneNumbers" Path="Phones/vCard.PhoneNumber#work" />
</Record>
</Annotation>
</EntityType>
<EntityType Name="Phone">
...
<Property Name="work_phone_number" Type="String"/>
...
<Annotation Term="vCard.PhoneNumber" Qualifier="work">
<Record>
<PropertyValue Property="Number" Path="work_phone_number" />
</Record>
</Annotation>
</EntityType>
</Schema>
Accepted: https://www.oasis-open.org/committees/download.php/48097/odata-meeting-23_on-20130130_31-F2F-minutes.html#odata-108
Show
When mapping properties of a term the target of the mapping MUST be of the type specified in the term definition or a derived type of the specified type, or annotated with the specified type or a subtype of the specified type.
Example vocabulary:
<Schema Namespace="vCard">
<Term Name="Contact" Type="vCard.ContactType" AppliesTo="EntityType,ComplexType" />
<ComplexType Name="ContactType">
<Property Name="PhoneNumbers" Type="Collection(vCard.PhoneNumberType)" />
...
</ComplexType>
<Term Name="PhoneNumber" Type="vCard.PhoneNumberType" AppliesTo="EntityType,ComplexType" />
<ComplexType Name="PhoneNumberType">
<Property Name="Number" Type="String"/>
...
</ComplexType>
</Schema>
Example service with annotations:
<Schema Namespace="SomeService">
<EntityType Name="Customer">
...
<NavigationProperty Name="Phones" Type="Collection(SomeService.Phone)"/>
...
<Annotation Term="vCard.Contact">
<Record>
<PropertyValue Property="PhoneNumbers" Path="Phones/vCard.PhoneNumber#work" />
</Record>
</Annotation>
</EntityType>
<EntityType Name="Phone">
...
<Property Name="work_phone_number" Type="String"/>
...
<Annotation Term="vCard.PhoneNumber" Qualifier="work">
<Record>
<PropertyValue Property="Number" Path="work_phone_number" />
</Record>
</Annotation>
</EntityType>
</Schema>
Accepted: https://www.oasis-open.org/committees/download.php/48097/odata-meeting-23_on-20130130_31-F2F-minutes.html#odata-108
-
Resolution:
Show
https://www.oasis-open.org/committees/download.php/48171/odata-core-v1.0-wd01-part3-csdl-2013-02-07-RH.doc
https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/spec/schemas/csdl.xsd?rev=175
Accepted: https://www.oasis-open.org/committees/download.php/48269/odata-meeting-25_on-20130214-minutes.html#odata-108
Define rules around what the target of a PropertyValue in an Annotation may be. It MUST be the specified type, or contain an Annotation mapping it to the specified type.
There are no comments yet on this issue.
{"report":{"apdex":0.5,"isInitial":true,"journeyId":"f51f930e-f9c5-4ca6-8b4a-963fd504e782","key":"jira.project.issue.view-issue","navigationType":0,"readyForUser":1141.1000003814697,"redirectCount":0,"resourceLoadedEnd":1306.6000003814697,"resourceLoadedStart":325.2000002861023,"resourceTiming":[{"duration":438.2999997138977,"initiatorType":"link","name":"https://issues.oasis-open.org/s/3edeca31ab9ba77980aae0809fbe7121-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/0a4716d29b2d5b1bdcdb168b4efc119e/_/download/contextbatch/css/_super/batch.css","startTime":325.2000002861023,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":325.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":763.5,"responseStart":0,"secureConnectionStart":0},{"duration":438.2999997138977,"initiatorType":"link","name":"https://issues.oasis-open.org/s/7d2823769c2e7b66e860863fe879b7f8-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/9aebb1c0aaa4c36289529757ec9dbb54/_/download/contextbatch/css/project.issue.navigator,jira.view.issue,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&richediton=true","startTime":325.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":325.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":763.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":438.19999980926514,"initiatorType":"link","name":"https://issues.oasis-open.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/8.0.5/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.css","startTime":325.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":325.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":764,"responseStart":0,"secureConnectionStart":0},{"duration":438,"initiatorType":"link","name":"https://issues.oasis-open.org/s/645acc233eb869f48a571293b8358a7d-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/1.0/_/download/batch/jira.webresources:global-static-adgs/jira.webresources:global-static-adgs.css","startTime":326,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":326,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":764,"responseStart":0,"secureConnectionStart":0},{"duration":437.80000019073486,"initiatorType":"link","name":"https://issues.oasis-open.org/s/a0dd6509771c1de0667aae5429c04cda-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/1.0/_/download/batch/jira.webresources:global-static/jira.webresources:global-static.css","startTime":326.30000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":326.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":764.1000003814697,"responseStart":0,"secureConnectionStart":0},{"duration":465.80000019073486,"initiatorType":"script","name":"https://issues.oasis-open.org/s/e5479157e7a0c08b005e6522f2f04104-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/0a4716d29b2d5b1bdcdb168b4efc119e/_/download/contextbatch/js/_super/batch.js?locale=en-US","startTime":326.5,"connectEnd":326.5,"connectStart":326.5,"domainLookupEnd":326.5,"domainLookupStart":326.5,"fetchStart":326.5,"redirectEnd":0,"redirectStart":0,"requestStart":326.5,"responseEnd":792.3000001907349,"responseStart":792.3000001907349,"secureConnectionStart":326.5},{"duration":497.1000003814697,"initiatorType":"script","name":"https://issues.oasis-open.org/s/83514d5d4e8543747b02042eafcdc99c-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/9aebb1c0aaa4c36289529757ec9dbb54/_/download/contextbatch/js/project.issue.navigator,jira.view.issue,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":327,"connectEnd":327,"connectStart":327,"domainLookupEnd":327,"domainLookupStart":327,"fetchStart":327,"redirectEnd":0,"redirectStart":0,"requestStart":327,"responseEnd":824.1000003814697,"responseStart":824.1000003814697,"secureConnectionStart":327},{"duration":498.90000009536743,"initiatorType":"script","name":"https://issues.oasis-open.org/s/70bb2263e59e7e1f04fbd137c80b895b-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/aae1242f5fc81cc6a5bb8bc963ccda29/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en-US","startTime":327.30000019073486,"connectEnd":327.30000019073486,"connectStart":327.30000019073486,"domainLookupEnd":327.30000019073486,"domainLookupStart":327.30000019073486,"fetchStart":327.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":327.30000019073486,"responseEnd":826.2000002861023,"responseStart":826.1000003814697,"secureConnectionStart":327.30000019073486},{"duration":499.2000002861023,"initiatorType":"script","name":"https://issues.oasis-open.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":327.5,"connectEnd":327.5,"connectStart":327.5,"domainLookupEnd":327.5,"domainLookupStart":327.5,"fetchStart":327.5,"redirectEnd":0,"redirectStart":0,"requestStart":327.5,"responseEnd":826.7000002861023,"responseStart":826.7000002861023,"secureConnectionStart":327.5},{"duration":499.5,"initiatorType":"script","name":"https://issues.oasis-open.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":327.6000003814697,"connectEnd":327.6000003814697,"connectStart":327.6000003814697,"domainLookupEnd":327.6000003814697,"domainLookupStart":327.6000003814697,"fetchStart":327.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":327.6000003814697,"responseEnd":827.1000003814697,"responseStart":827.1000003814697,"secureConnectionStart":327.6000003814697},{"duration":499.80000019073486,"initiatorType":"script","name":"https://issues.oasis-open.org/s/cda37faab827dbdf305de8efe8282062-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/8.0.5/_/download/batch/com.atlassian.auiplugin:split_aui.pattern.label/com.atlassian.auiplugin:split_aui.pattern.label.js?locale=en-US","startTime":327.80000019073486,"connectEnd":327.80000019073486,"connectStart":327.80000019073486,"domainLookupEnd":327.80000019073486,"domainLookupStart":327.80000019073486,"fetchStart":327.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":327.80000019073486,"responseEnd":827.6000003814697,"responseStart":827.6000003814697,"secureConnectionStart":327.80000019073486},{"duration":613.8000001907349,"initiatorType":"link","name":"https://issues.oasis-open.org/s/07245784f53abc49bad9d9d4d36c577a-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/cadc4f20cc5c138dee060d42cf85f220/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":328,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":328,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":941.8000001907349,"responseStart":0,"secureConnectionStart":0},{"duration":499.90000009536743,"initiatorType":"script","name":"https://issues.oasis-open.org/rest/api/1.0/shortcuts/803004/a29179d70fa8562374ee16707692af77/shortcuts.js?context=issuenavigation&context=issueaction","startTime":328.2000002861023,"connectEnd":328.2000002861023,"connectStart":328.2000002861023,"domainLookupEnd":328.2000002861023,"domainLookupStart":328.2000002861023,"fetchStart":328.2000002861023,"redirectEnd":0,"redirectStart":0,"requestStart":328.2000002861023,"responseEnd":828.1000003814697,"responseStart":828.1000003814697,"secureConnectionStart":328.2000002861023},{"duration":578.2999997138977,"initiatorType":"link","name":"https://issues.oasis-open.org/s/f77fd89aa211a76b20e9b0e63564383c-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/4a9288299d147101bf66484f4be48925/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.css?jira.create.linked.issue=true&richediton=true","startTime":363.6000003814697,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":363.6000003814697,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":941.9000000953674,"responseStart":0,"secureConnectionStart":0},{"duration":465,"initiatorType":"script","name":"https://issues.oasis-open.org/s/41525c48ddceeb9b11e54085268fc285-CDN/nu8zej/803004/aeedb5937bed650f2f0cc4ec9ceaa5d3/4a9288299d147101bf66484f4be48925/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-jira.view.issue,-project.issue.navigator/batch.js?jira.create.linked.issue=true&locale=en-US&richediton=true","startTime":363.90000009536743,"connectEnd":363.90000009536743,"connectStart":363.90000009536743,"domainLookupEnd":363.90000009536743,"domainLookupStart":363.90000009536743,"fetchStart":363.90000009536743,"redirectEnd":0,"redirectStart":0,"requestStart":363.90000009536743,"responseEnd":828.9000000953674,"responseStart":828.9000000953674,"secureConnectionStart":363.90000009536743}],"threshold":1000,"fetchStart":0,"domainLookupStart":207,"domainLookupEnd":207,"connectStart":207,"connectEnd":257,"secureConnectionStart":232,"requestStart":257,"responseStart":309,"responseEnd":382,"domLoading":314,"domInteractive":1322,"domContentLoadedEventStart":1322,"domContentLoadedEventEnd":1364,"domComplete":1763,"loadEventStart":1763,"loadEventEnd":1766,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[],"measures":[],"correlationId":"f7873b15cb304c","effectiveType":"4g","downlink":9.6,"rtt":0,"serverDuration":97,"dbReadsTimeInMs":9,"dbConnsTimeInMs":12,"applicationHash":"4d4040e0714d65b7fffa4801569d014c0b16eaa9","experiments":[]}}