首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >包含另一个复杂属性的复杂属性

包含另一个复杂属性的复杂属性
EN

Stack Overflow用户
提问于 2016-09-13 16:57:10
回答 1查看 174关注 0票数 1

根据RFC7643第2.3.8节

复杂属性不能包含具有子属性(即复杂属性)的子属性。

但是,当我在同一RFC第8.7.2节第88行中读取模式定义时,我注意到urn:ietf:params:scim:schemas:core:2.0:Schema描述如下:

代码语言:javascript
复制
  {
    ...
    "attributes" : [
      ...
      {
        "name" : "attributes",
        "type" : "complex",
        "multiValued" : true,
        "description" : "A complex attribute that includes the
          attributes of a schema.",
        "required" : true,
        "mutability" : "readOnly",
        "returned" : "default",
        "subAttributes" : [
          ...
          {
            "name" : "subAttributes",
            "type" : "complex",
            "multiValued" : true,
            "description" : "Used to define the sub-attributes of a
              complex attribute.",
            "required" : false,
            "mutability" : "readOnly",
            "returned" : "default",
            "subAttributes" : [

我错过了什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-09-14 07:01:18

对于所有架构定义,复杂属性可能包含另一个复杂属性。在RFC7643第7节中我们可以读到

与其他核心资源不同,“架构”资源可能包含子属性中的复杂对象,除非另有规定,否则所有属性都是必需的。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39475320

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档