Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict types of fields #235

Open
ZeN220 opened this issue Dec 25, 2022 · 0 comments
Open

Conflict types of fields #235

ZeN220 opened this issue Dec 25, 2022 · 0 comments

Comments

@ZeN220
Copy link

ZeN220 commented Dec 25, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant