Download schema.json from RegalFire/Scientific-Code-and-Analysis-QA: direct link, hf CLI and curl.
- Browser
- Download file 31.5 kB
-
https://huggingface.co/datasets/RegalFire/Scientific-Code-and-Analysis-QA/resolve/main/schema.json
- Command line
-
hf download hf://datasets/RegalFire/Scientific-Code-and-Analysis-QA/schema.json
-
curl -L -o schema.json https://huggingface.co/datasets/RegalFire/Scientific-Code-and-Analysis-QA/resolve/main/schema.json
31.5 kB
| { | |
| "type": "object", | |
| "properties": { | |
| "record_id": { | |
| "type": "string" | |
| }, | |
| "product": { | |
| "const": "code_qa" | |
| }, | |
| "thread": { | |
| "type": "object", | |
| "properties": { | |
| "thread_id": { | |
| "type": "string", | |
| "pattern": "^(stats|scicomp|biology):[0-9]+$" | |
| }, | |
| "source_site": { | |
| "enum": [ | |
| "stats", | |
| "scicomp", | |
| "biology" | |
| ] | |
| }, | |
| "title": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "question_text": { | |
| "type": "string", | |
| "minLength": 20 | |
| }, | |
| "question_html": { | |
| "type": "string" | |
| }, | |
| "question_author": { | |
| "type": "string" | |
| }, | |
| "question_author_url": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "question_author_user_type": { | |
| "type": "string" | |
| }, | |
| "question_created_at": { | |
| "type": "string" | |
| }, | |
| "question_score": { | |
| "type": "integer" | |
| }, | |
| "tags": { | |
| "type": "array", | |
| "minItems": 1, | |
| "uniqueItems": true, | |
| "items": { | |
| "type": "string" | |
| } | |
| }, | |
| "question_license": { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| "accepted_answer_id": { | |
| "type": [ | |
| "integer", | |
| "null" | |
| ] | |
| }, | |
| "answers": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "answer_id": { | |
| "type": "integer" | |
| }, | |
| "question_id": { | |
| "type": "integer" | |
| }, | |
| "answer_text": { | |
| "type": "string", | |
| "minLength": 20 | |
| }, | |
| "answer_html": { | |
| "type": "string" | |
| }, | |
| "created_at": { | |
| "type": "string" | |
| }, | |
| "updated_at": { | |
| "type": "string" | |
| }, | |
| "score": { | |
| "type": "integer" | |
| }, | |
| "is_accepted": { | |
| "type": "boolean" | |
| }, | |
| "content_license": { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| "answer_url": { | |
| "type": "string" | |
| }, | |
| "provenance": { | |
| "type": "object", | |
| "properties": { | |
| "source_api": { | |
| "type": "string" | |
| }, | |
| "source_url": { | |
| "type": "string" | |
| }, | |
| "collected_at": { | |
| "type": "string" | |
| }, | |
| "raw_file": { | |
| "type": "string" | |
| }, | |
| "raw_sha256": { | |
| "type": "string", | |
| "pattern": "^[a-f0-9]{64}$" | |
| }, | |
| "license": { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| "license_url": { | |
| "type": "string" | |
| }, | |
| "attribution_required": { | |
| "const": true | |
| }, | |
| "transformation": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "source_api", | |
| "source_url", | |
| "collected_at", | |
| "raw_file", | |
| "raw_sha256", | |
| "license", | |
| "license_url", | |
| "attribution_required", | |
| "transformation" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "revision_attribution": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "revision_guid": { | |
| "type": "string" | |
| }, | |
| "revision_number": { | |
| "type": [ | |
| "integer", | |
| "null" | |
| ] | |
| }, | |
| "revision_type": { | |
| "type": "string" | |
| }, | |
| "created_at": { | |
| "type": "string" | |
| }, | |
| "content_license": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "contributor": { | |
| "type": "object", | |
| "properties": { | |
| "display_name": { | |
| "type": "string" | |
| }, | |
| "profile_url": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "user_type": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "display_name", | |
| "profile_url", | |
| "user_type" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "revision_url": { | |
| "type": "string" | |
| }, | |
| "raw_file": { | |
| "type": "string" | |
| }, | |
| "raw_sha256": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "revision_guid", | |
| "revision_number", | |
| "revision_type", | |
| "created_at", | |
| "content_license", | |
| "contributor", | |
| "revision_url", | |
| "raw_file", | |
| "raw_sha256" | |
| ], | |
| "additionalProperties": false | |
| } | |
| }, | |
| "author": { | |
| "type": "string" | |
| }, | |
| "author_url": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "author_user_type": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "answer_id", | |
| "question_id", | |
| "answer_text", | |
| "answer_html", | |
| "created_at", | |
| "updated_at", | |
| "score", | |
| "is_accepted", | |
| "content_license", | |
| "answer_url", | |
| "provenance", | |
| "revision_attribution", | |
| "author", | |
| "author_url", | |
| "author_user_type" | |
| ], | |
| "additionalProperties": false | |
| } | |
| }, | |
| "provenance": { | |
| "type": "object", | |
| "properties": { | |
| "source_api": { | |
| "type": "string" | |
| }, | |
| "source_url": { | |
| "type": "string" | |
| }, | |
| "collected_at": { | |
| "type": "string" | |
| }, | |
| "raw_file": { | |
| "type": "string" | |
| }, | |
| "raw_sha256": { | |
| "type": "string", | |
| "pattern": "^[a-f0-9]{64}$" | |
| }, | |
| "license": { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| "license_url": { | |
| "type": "string" | |
| }, | |
| "attribution_required": { | |
| "const": true | |
| }, | |
| "transformation": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "source_api", | |
| "source_url", | |
| "collected_at", | |
| "raw_file", | |
| "raw_sha256", | |
| "license", | |
| "license_url", | |
| "attribution_required", | |
| "transformation" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "revision_attribution": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "revision_guid": { | |
| "type": "string" | |
| }, | |
| "revision_number": { | |
| "type": [ | |
| "integer", | |
| "null" | |
| ] | |
| }, | |
| "revision_type": { | |
| "type": "string" | |
| }, | |
| "created_at": { | |
| "type": "string" | |
| }, | |
| "content_license": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "contributor": { | |
| "type": "object", | |
| "properties": { | |
| "display_name": { | |
| "type": "string" | |
| }, | |
| "profile_url": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "user_type": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "display_name", | |
| "profile_url", | |
| "user_type" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "revision_url": { | |
| "type": "string" | |
| }, | |
| "raw_file": { | |
| "type": "string" | |
| }, | |
| "raw_sha256": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "revision_guid", | |
| "revision_number", | |
| "revision_type", | |
| "created_at", | |
| "content_license", | |
| "contributor", | |
| "revision_url", | |
| "raw_file", | |
| "raw_sha256" | |
| ], | |
| "additionalProperties": false | |
| } | |
| }, | |
| "medical_sensitive": { | |
| "type": "boolean" | |
| }, | |
| "patient_specific": { | |
| "const": false | |
| }, | |
| "split_group": { | |
| "type": "string" | |
| }, | |
| "split": { | |
| "enum": [ | |
| "train", | |
| "validation", | |
| "test", | |
| "holdout" | |
| ] | |
| }, | |
| "question_id": { | |
| "type": "integer" | |
| }, | |
| "domain": { | |
| "enum": [ | |
| "statistics", | |
| "computational_science", | |
| "biology" | |
| ] | |
| }, | |
| "source_url": { | |
| "type": "string" | |
| }, | |
| "external_links": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| }, | |
| "uniqueItems": true | |
| } | |
| }, | |
| "required": [ | |
| "thread_id", | |
| "source_site", | |
| "title", | |
| "question_text", | |
| "question_html", | |
| "question_author", | |
| "question_author_url", | |
| "question_author_user_type", | |
| "question_created_at", | |
| "question_score", | |
| "tags", | |
| "question_license", | |
| "accepted_answer_id", | |
| "answers", | |
| "provenance", | |
| "revision_attribution", | |
| "medical_sensitive", | |
| "patient_specific", | |
| "split_group", | |
| "split", | |
| "question_id", | |
| "domain", | |
| "source_url", | |
| "external_links" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "split": { | |
| "enum": [ | |
| "train", | |
| "validation", | |
| "test", | |
| "holdout" | |
| ] | |
| }, | |
| "question": { | |
| "type": "string" | |
| }, | |
| "accepted_answer": { | |
| "anyOf": [ | |
| { | |
| "type": "object", | |
| "properties": { | |
| "answer_id": { | |
| "type": "integer" | |
| }, | |
| "question_id": { | |
| "type": "integer" | |
| }, | |
| "answer_text": { | |
| "type": "string", | |
| "minLength": 20 | |
| }, | |
| "answer_html": { | |
| "type": "string" | |
| }, | |
| "created_at": { | |
| "type": "string" | |
| }, | |
| "updated_at": { | |
| "type": "string" | |
| }, | |
| "score": { | |
| "type": "integer" | |
| }, | |
| "is_accepted": { | |
| "type": "boolean" | |
| }, | |
| "content_license": { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| "answer_url": { | |
| "type": "string" | |
| }, | |
| "provenance": { | |
| "type": "object", | |
| "properties": { | |
| "source_api": { | |
| "type": "string" | |
| }, | |
| "source_url": { | |
| "type": "string" | |
| }, | |
| "collected_at": { | |
| "type": "string" | |
| }, | |
| "raw_file": { | |
| "type": "string" | |
| }, | |
| "raw_sha256": { | |
| "type": "string", | |
| "pattern": "^[a-f0-9]{64}$" | |
| }, | |
| "license": { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| "license_url": { | |
| "type": "string" | |
| }, | |
| "attribution_required": { | |
| "const": true | |
| }, | |
| "transformation": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "source_api", | |
| "source_url", | |
| "collected_at", | |
| "raw_file", | |
| "raw_sha256", | |
| "license", | |
| "license_url", | |
| "attribution_required", | |
| "transformation" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "revision_attribution": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "revision_guid": { | |
| "type": "string" | |
| }, | |
| "revision_number": { | |
| "type": [ | |
| "integer", | |
| "null" | |
| ] | |
| }, | |
| "revision_type": { | |
| "type": "string" | |
| }, | |
| "created_at": { | |
| "type": "string" | |
| }, | |
| "content_license": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "contributor": { | |
| "type": "object", | |
| "properties": { | |
| "display_name": { | |
| "type": "string" | |
| }, | |
| "profile_url": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "user_type": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "display_name", | |
| "profile_url", | |
| "user_type" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "revision_url": { | |
| "type": "string" | |
| }, | |
| "raw_file": { | |
| "type": "string" | |
| }, | |
| "raw_sha256": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "revision_guid", | |
| "revision_number", | |
| "revision_type", | |
| "created_at", | |
| "content_license", | |
| "contributor", | |
| "revision_url", | |
| "raw_file", | |
| "raw_sha256" | |
| ], | |
| "additionalProperties": false | |
| } | |
| }, | |
| "author": { | |
| "type": "string" | |
| }, | |
| "author_url": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "author_user_type": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "answer_id", | |
| "question_id", | |
| "answer_text", | |
| "answer_html", | |
| "created_at", | |
| "updated_at", | |
| "score", | |
| "is_accepted", | |
| "content_license", | |
| "answer_url", | |
| "provenance", | |
| "revision_attribution", | |
| "author", | |
| "author_url", | |
| "author_user_type" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "selected_answer": { | |
| "type": "object", | |
| "properties": { | |
| "answer_id": { | |
| "type": "integer" | |
| }, | |
| "question_id": { | |
| "type": "integer" | |
| }, | |
| "answer_text": { | |
| "type": "string", | |
| "minLength": 20 | |
| }, | |
| "answer_html": { | |
| "type": "string" | |
| }, | |
| "created_at": { | |
| "type": "string" | |
| }, | |
| "updated_at": { | |
| "type": "string" | |
| }, | |
| "score": { | |
| "type": "integer" | |
| }, | |
| "is_accepted": { | |
| "type": "boolean" | |
| }, | |
| "content_license": { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| "answer_url": { | |
| "type": "string" | |
| }, | |
| "provenance": { | |
| "type": "object", | |
| "properties": { | |
| "source_api": { | |
| "type": "string" | |
| }, | |
| "source_url": { | |
| "type": "string" | |
| }, | |
| "collected_at": { | |
| "type": "string" | |
| }, | |
| "raw_file": { | |
| "type": "string" | |
| }, | |
| "raw_sha256": { | |
| "type": "string", | |
| "pattern": "^[a-f0-9]{64}$" | |
| }, | |
| "license": { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| "license_url": { | |
| "type": "string" | |
| }, | |
| "attribution_required": { | |
| "const": true | |
| }, | |
| "transformation": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "source_api", | |
| "source_url", | |
| "collected_at", | |
| "raw_file", | |
| "raw_sha256", | |
| "license", | |
| "license_url", | |
| "attribution_required", | |
| "transformation" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "revision_attribution": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "revision_guid": { | |
| "type": "string" | |
| }, | |
| "revision_number": { | |
| "type": [ | |
| "integer", | |
| "null" | |
| ] | |
| }, | |
| "revision_type": { | |
| "type": "string" | |
| }, | |
| "created_at": { | |
| "type": "string" | |
| }, | |
| "content_license": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "contributor": { | |
| "type": "object", | |
| "properties": { | |
| "display_name": { | |
| "type": "string" | |
| }, | |
| "profile_url": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "user_type": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "display_name", | |
| "profile_url", | |
| "user_type" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "revision_url": { | |
| "type": "string" | |
| }, | |
| "raw_file": { | |
| "type": "string" | |
| }, | |
| "raw_sha256": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "revision_guid", | |
| "revision_number", | |
| "revision_type", | |
| "created_at", | |
| "content_license", | |
| "contributor", | |
| "revision_url", | |
| "raw_file", | |
| "raw_sha256" | |
| ], | |
| "additionalProperties": false | |
| } | |
| }, | |
| "author": { | |
| "type": "string" | |
| }, | |
| "author_url": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "author_user_type": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "answer_id", | |
| "question_id", | |
| "answer_text", | |
| "answer_html", | |
| "created_at", | |
| "updated_at", | |
| "score", | |
| "is_accepted", | |
| "content_license", | |
| "answer_url", | |
| "provenance", | |
| "revision_attribution", | |
| "author", | |
| "author_url", | |
| "author_user_type" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "other_answers": { | |
| "type": "array", | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "answer_id": { | |
| "type": "integer" | |
| }, | |
| "question_id": { | |
| "type": "integer" | |
| }, | |
| "answer_text": { | |
| "type": "string", | |
| "minLength": 20 | |
| }, | |
| "answer_html": { | |
| "type": "string" | |
| }, | |
| "created_at": { | |
| "type": "string" | |
| }, | |
| "updated_at": { | |
| "type": "string" | |
| }, | |
| "score": { | |
| "type": "integer" | |
| }, | |
| "is_accepted": { | |
| "type": "boolean" | |
| }, | |
| "content_license": { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| "answer_url": { | |
| "type": "string" | |
| }, | |
| "provenance": { | |
| "type": "object", | |
| "properties": { | |
| "source_api": { | |
| "type": "string" | |
| }, | |
| "source_url": { | |
| "type": "string" | |
| }, | |
| "collected_at": { | |
| "type": "string" | |
| }, | |
| "raw_file": { | |
| "type": "string" | |
| }, | |
| "raw_sha256": { | |
| "type": "string", | |
| "pattern": "^[a-f0-9]{64}$" | |
| }, | |
| "license": { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| "license_url": { | |
| "type": "string" | |
| }, | |
| "attribution_required": { | |
| "const": true | |
| }, | |
| "transformation": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "source_api", | |
| "source_url", | |
| "collected_at", | |
| "raw_file", | |
| "raw_sha256", | |
| "license", | |
| "license_url", | |
| "attribution_required", | |
| "transformation" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "revision_attribution": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "revision_guid": { | |
| "type": "string" | |
| }, | |
| "revision_number": { | |
| "type": [ | |
| "integer", | |
| "null" | |
| ] | |
| }, | |
| "revision_type": { | |
| "type": "string" | |
| }, | |
| "created_at": { | |
| "type": "string" | |
| }, | |
| "content_license": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "CC BY-SA 2.5", | |
| "CC BY-SA 3.0", | |
| "CC BY-SA 4.0" | |
| ] | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "contributor": { | |
| "type": "object", | |
| "properties": { | |
| "display_name": { | |
| "type": "string" | |
| }, | |
| "profile_url": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "user_type": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "display_name", | |
| "profile_url", | |
| "user_type" | |
| ], | |
| "additionalProperties": false | |
| }, | |
| "revision_url": { | |
| "type": "string" | |
| }, | |
| "raw_file": { | |
| "type": "string" | |
| }, | |
| "raw_sha256": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "revision_guid", | |
| "revision_number", | |
| "revision_type", | |
| "created_at", | |
| "content_license", | |
| "contributor", | |
| "revision_url", | |
| "raw_file", | |
| "raw_sha256" | |
| ], | |
| "additionalProperties": false | |
| } | |
| }, | |
| "author": { | |
| "type": "string" | |
| }, | |
| "author_url": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ] | |
| }, | |
| "author_user_type": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "answer_id", | |
| "question_id", | |
| "answer_text", | |
| "answer_html", | |
| "created_at", | |
| "updated_at", | |
| "score", | |
| "is_accepted", | |
| "content_license", | |
| "answer_url", | |
| "provenance", | |
| "revision_attribution", | |
| "author", | |
| "author_url", | |
| "author_user_type" | |
| ], | |
| "additionalProperties": false | |
| } | |
| }, | |
| "selection_rule": { | |
| "type": "string" | |
| }, | |
| "code_blocks": { | |
| "type": "array", | |
| "minItems": 1, | |
| "items": { | |
| "type": "object", | |
| "properties": { | |
| "post_id": { | |
| "type": "integer" | |
| }, | |
| "block_index": { | |
| "type": "integer" | |
| }, | |
| "code_text": { | |
| "type": "string" | |
| }, | |
| "source_url": { | |
| "type": "string" | |
| }, | |
| "sha256": { | |
| "type": "string" | |
| }, | |
| "language": { | |
| "const": "unspecified" | |
| }, | |
| "language_note": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "post_id", | |
| "block_index", | |
| "code_text", | |
| "source_url", | |
| "sha256", | |
| "language", | |
| "language_note" | |
| ], | |
| "additionalProperties": false | |
| } | |
| } | |
| }, | |
| "required": [ | |
| "record_id", | |
| "product", | |
| "thread", | |
| "split", | |
| "question", | |
| "accepted_answer", | |
| "selected_answer", | |
| "other_answers", | |
| "selection_rule", | |
| "code_blocks" | |
| ], | |
| "additionalProperties": false, | |
| "$schema": "https://json-schema.org/draft/2020-12/schema" | |
| } | |