addedOutput schema / $defs
Added value: +{
+ "Comment": {
+ "additionalProperties": true,
+ "description": "A comment in a threaded discussion, with its nested replies.\n\nHackerNews comments may be deleted (``deleted``/``dead``) yet still carry\nan id. Extra API fields are always allowed so parsing never breaks.",
+ "properties": {
+ "by": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The comment's author."
+ },
+ "dead": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True if the comment is dead."
+ },
+ "deleted": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "True if the comment is deleted."
+ },
+ "hn_url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Canonical HackerNews discussion link.",
+ "readOnly": true
+ },
+ "id": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The comment's id, if present."
+ },
+ "kids": {
+ "anyOf": [
+ {
+ "items": {
+ "type": "integer"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The ids of the comment's replies, in display order."
+ },
+ "replies": {
+ "description": "The comment's expanded child replies.",
+ "items": {
+ "$ref": "#/$defs/Comment"
+ },
+ "type": "array"
+ },
+ "text": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The comment body (HTML)."
+ },
+ "time": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Creation date, in Unix time."
+ }
+ },
+ "required": [
+ "hn_url"
+ ],
+ "type": "object"
+ }
+}