Skip to content

Conflict types of fields #235

Description

@ZeN220

For example, schema of notifications_notification_parent object refers to wall_wallpost_to_id, photos_photo, board_topic & video_video. But this objects have a field "comments", which in each of objects has a diffirent type of:

"notifications_notification_parent": {
  "type": "object",
  "allOf": [
    {
      "$ref": "../wall/objects.json#/definitions/wall_wallpost_to_id"
    },
    {
      "$ref": "../photos/objects.json#/definitions/photos_photo"
    },
    {
      "$ref": "../board/objects.json#/definitions/board_topic"
    },
    {
      "$ref": "../video/objects.json#/definitions/video_video"
    },
    {
      "$ref": "../notifications/objects.json#/definitions/notifications_notifications_comment"
    }
  ],
  "additionalProperties": false
}

wall_wallpost_to_id object:

"wall_wallpost_to_id": {
  "type": "object",
  "properties": {
    "comments": {
      "$ref": "../base/objects.json#/definitions/base_comments_info"
    }
  },
  "additionalProperties": false
}

photos_photo object:

"photos_photo": {
  "type": "object",
  "properties": {
    "comments": {
      "$ref": "../base/objects.json#/definitions/base_object_count"
    }
  },
  "additionalProperties": false
}

board_topic object:

"board_topic": {
  "type": "object",
  "properties": {
    "comments": {
      "type": "integer",
      "description": "Comments number"
    }
  },
  "additionalProperties": false
}

video_video object:

"video_video": {
  "properties": {
    "comments": {
      "type": "integer",
      "description": "Number of comments",
      "minimum": 0
    }
  }
}

This problem is also repeated with fields id, date & owner_id.

This problem observered not only in notifications_notification_parent object, but also in newsfeed_item_wallpost object with date field.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions