为什么 jsonschema 不验证架构中的以下定义?

Why doesn't jsonschema validate following definition from schema?

我的定义如下。而且它根本不验证 my_field_type_1。可能是什么原因?我正在使用 jsonschema 的 python 模块。

definitions:
  TestRouteSchema1:
    required:
    - my_field
    properties:
      my_field:
        type: object
        my_field_type_1:
          $ref: "#/definitions/MyFieldType1"
        my_field_type_2:
          $ref: "#/definitions/MyFieldType2"

您必须将 my_field_type_1my_field_type_1 嵌套在新的 properties 键下。所以像

definitions:
  TestRouteSchema1:
    required:
    - my_field
    properties:
      my_field:
        type: object
        properties:
          my_field_type_1:
            $ref: "#/definitions/MyFieldType1"
          my_field_type_2:
            $ref: "#/definitions/MyFieldType2"