<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Localised Entities being shown in generated Open API in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820097#M4814449</link>
    <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;hans-joachim.both&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;The entity Attributes_texts is an autogenerated one from the localised field in the Attribute entity. There is no entry for Attributes_texts in our service cds. This entity is generated during cds build. Hence we cannot explicitly annotate it with the @cds.autoexpose: false&lt;BR /&gt;&lt;BR /&gt;Or am I missing something ? Should I add this somewhere in the parent Attribute entity ?&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2024 11:23:14 GMT</pubDate>
    <dc:creator>calmservices</dc:creator>
    <dc:date>2024-01-15T11:23:14Z</dc:date>
    <item>
      <title>Localised Entities being shown in generated Open API</title>
      <link>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaq-p/12820091</link>
      <description>&lt;P&gt;Hi Colleagues,&lt;BR /&gt;&lt;BR /&gt;I have a simple entity with one of the fields localized as show below in my service.cds file&lt;BR /&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;entity Attributes : cuid {&lt;BR /&gt;        contextType : Association to ContextTypes;&lt;BR /&gt;        name        : String(255);&lt;BR /&gt;        description : localized String(500);&lt;BR /&gt;        sequence    : Integer;&lt;BR /&gt;}
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;I am using the following command in my POM to generate Open API Documentation&lt;BR /&gt;compile srv --service all -o docs/my_api --to openapi&lt;/P&gt;
  &lt;P&gt;The generated API Documentation has now both the Attributes and Attributes_texts. Is there a way to avoid displaying such entities having localized fields in Open API generated via CAP ? Because such entities have not been auto exposed (Attributes_texts) and only the parent entity has been (Attributes)&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 14:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaq-p/12820091</guid>
      <dc:creator>calmservices</dc:creator>
      <dc:date>2024-01-13T14:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Localised Entities being shown in generated Open API</title>
      <link>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820092#M4814444</link>
      <description>&lt;P&gt;Please check the documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://cap.cloud.sap/docs/advanced/odata#omitting-elements-from-apis" target="_blank"&gt;Omitting Elements from APIs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 16:11:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820092#M4814444</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2024-01-13T16:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Localised Entities being shown in generated Open API</title>
      <link>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820093#M4814445</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;gregorw&lt;/SPAN&gt; &lt;BR /&gt;&lt;BR /&gt;I tried the following &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2236695-image.png" /&gt;&lt;/P&gt;&lt;P&gt;I see the Attributes_Texts still coming up in the Open API. This Attributes_texts is a generated table which has a locale, ID and description (the column in attributes table which is localized)&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 13:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820093#M4814445</guid>
      <dc:creator>calmservices</dc:creator>
      <dc:date>2024-01-14T13:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Localised Entities being shown in generated Open API</title>
      <link>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820094#M4814446</link>
      <description>&lt;P&gt;Have you tried adding the annotation to to the Attributes_texts entity?&lt;/P&gt;</description>
      <pubDate>Sun, 14 Jan 2024 16:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820094#M4814446</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2024-01-14T16:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Localised Entities being shown in generated Open API</title>
      <link>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820095#M4814447</link>
      <description>&lt;P&gt;use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;annotate Attributes.texts with @cds.autoexpose: false;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jan 2024 08:33:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820095#M4814447</guid>
      <dc:creator>hjb</dc:creator>
      <dc:date>2024-01-15T08:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Localised Entities being shown in generated Open API</title>
      <link>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820096#M4814448</link>
      <description>&lt;P&gt;that wouldn't help, the whole '.texts' entity should not become visible IIUC, see my answer below.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 08:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820096#M4814448</guid>
      <dc:creator>hjb</dc:creator>
      <dc:date>2024-01-15T08:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Localised Entities being shown in generated Open API</title>
      <link>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820097#M4814449</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;hans-joachim.both&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;The entity Attributes_texts is an autogenerated one from the localised field in the Attribute entity. There is no entry for Attributes_texts in our service cds. This entity is generated during cds build. Hence we cannot explicitly annotate it with the @cds.autoexpose: false&lt;BR /&gt;&lt;BR /&gt;Or am I missing something ? Should I add this somewhere in the parent Attribute entity ?&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 11:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820097#M4814449</guid>
      <dc:creator>calmservices</dc:creator>
      <dc:date>2024-01-15T11:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Localised Entities being shown in generated Open API</title>
      <link>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820098#M4814450</link>
      <description>&lt;P&gt;sure you can, I wrote 'Attributes.texts', not 'Attribute_texts', and of course you can't mute something that's inside a service already but only prevent an association target from becoming auto-exposed.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 11:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/localised-entities-being-shown-in-generated-open-api/qaa-p/12820098#M4814450</guid>
      <dc:creator>hjb</dc:creator>
      <dc:date>2024-01-15T11:35:33Z</dc:date>
    </item>
  </channel>
</rss>

