<?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>topic Custom field validation on REST apis in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/custom-field-validation-on-rest-apis/m-p/138841#M37160</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alfresco provides a rich set of REST apis(ACS REST api and CMIS REST apis(OASIS specification implementation) for external integration .&lt;/P&gt;&lt;P&gt;But for custom type upload of document - the mandatory field validation is not done . And content is uploaded -&amp;gt; node created in alfresco. However showing warning sign on the mandatory custom properties.&lt;/P&gt;&lt;P&gt;Ideally&amp;nbsp; - it should give a bad request (400) , OR is there any way /configuration to have the mandatory fields(custom type , aspects) applied in REST calls?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kindly note:&lt;/STRONG&gt; I understand that -&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) We can create webscripts for upload of specific type and validation done.(extending)&lt;/P&gt;&lt;P&gt;b) UI can do validation on form .&lt;/P&gt;&lt;P&gt;Ranjeet&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jan 2021 00:32:34 GMT</pubDate>
    <dc:creator>ranjeetsi</dc:creator>
    <dc:date>2021-01-29T00:32:34Z</dc:date>
    <item>
      <title>Custom field validation on REST apis</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-field-validation-on-rest-apis/m-p/138841#M37160</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alfresco provides a rich set of REST apis(ACS REST api and CMIS REST apis(OASIS specification implementation) for external integration .&lt;/P&gt;&lt;P&gt;But for custom type upload of document - the mandatory field validation is not done . And content is uploaded -&amp;gt; node created in alfresco. However showing warning sign on the mandatory custom properties.&lt;/P&gt;&lt;P&gt;Ideally&amp;nbsp; - it should give a bad request (400) , OR is there any way /configuration to have the mandatory fields(custom type , aspects) applied in REST calls?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kindly note:&lt;/STRONG&gt; I understand that -&amp;nbsp;&lt;/P&gt;&lt;P&gt;a) We can create webscripts for upload of specific type and validation done.(extending)&lt;/P&gt;&lt;P&gt;b) UI can do validation on form .&lt;/P&gt;&lt;P&gt;Ranjeet&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 00:32:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-field-validation-on-rest-apis/m-p/138841#M37160</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2021-01-29T00:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom field validation on REST apis</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-field-validation-on-rest-apis/m-p/138842#M37161</link>
      <description>&lt;P&gt;You should maybe check with the documentation on Alfresco data models about the "mandatory" vs. "enforced mandatory" configuration for model properties. Any property that is set as "mandatory" without having the "enforced" flag as "true" is not "hard mandatory" - meaning it is perfectly valid to create a node without the property being set and the expected result would indeed be that Alfresco flags the node as incomplete (with warning flags in the UI). Only if you have an "enforced mandatory" property not set during creation should you expect a failure - and I can say that the validation for that is completely independent of which API is used to create the node, so will definitely occur and fail even for the ReST API.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 07:58:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-field-validation-on-rest-apis/m-p/138842#M37161</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-01-29T07:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom field validation on REST apis</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-field-validation-on-rest-apis/m-p/138843#M37162</link>
      <description>&lt;P&gt;Many thanks Alex!!&lt;/P&gt;&lt;P&gt;That really helps!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2021 14:51:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-field-validation-on-rest-apis/m-p/138843#M37162</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2021-01-29T14:51:04Z</dc:date>
    </item>
  </channel>
</rss>

