docs: add v2 schema json
This commit is contained in:
parent
b2edcbe1a5
commit
c57f072560
5 changed files with 101 additions and 4 deletions
87
schemas/bc2.json
Normal file
87
schemas/bc2.json
Normal file
|
@ -0,0 +1,87 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "https://bypass.censorship.guide/schema/bc2.json",
|
||||
"type": "object",
|
||||
"title": "Bypass Censorship Version 2",
|
||||
"required": [
|
||||
"sites",
|
||||
"version"
|
||||
],
|
||||
"properties": {
|
||||
"sites": {
|
||||
"$id": "#/properties/sites",
|
||||
"type": "array",
|
||||
"title": "The sites schema",
|
||||
"additionalItems": true,
|
||||
"items": {
|
||||
"$id": "#/properties/sites/items",
|
||||
"type": "object",
|
||||
"title": "The items schema",
|
||||
"required": [
|
||||
"available_alternatives",
|
||||
"main_domain"
|
||||
],
|
||||
"properties": {
|
||||
"available_alternatives": {
|
||||
"$id": "#/properties/sites/items/properties/available_alternatives",
|
||||
"type": "array",
|
||||
"title": "The available_alternatives schema",
|
||||
"additionalItems": true,
|
||||
"items": {
|
||||
"$id": "#/properties/sites/items/properties/available_alternatives/items",
|
||||
"type": "object",
|
||||
"title": "The items schema",
|
||||
"required": [
|
||||
"created_at",
|
||||
"proto",
|
||||
"type",
|
||||
"updated_at",
|
||||
"url"
|
||||
],
|
||||
"properties": {
|
||||
"created_at": {
|
||||
"$id": "#/properties/sites/items/properties/available_alternatives/items/properties/created_at",
|
||||
"type": "string",
|
||||
"title": "The created_at schema"
|
||||
},
|
||||
"proto": {
|
||||
"$id": "#/properties/sites/items/properties/available_alternatives/items/properties/proto",
|
||||
"type": "string",
|
||||
"title": "The proto schema"
|
||||
},
|
||||
"type": {
|
||||
"$id": "#/properties/sites/items/properties/available_alternatives/items/properties/type",
|
||||
"type": "string",
|
||||
"title": "The type schema"
|
||||
},
|
||||
"updated_at": {
|
||||
"$id": "#/properties/sites/items/properties/available_alternatives/items/properties/updated_at",
|
||||
"type": "string",
|
||||
"title": "The updated_at schema"
|
||||
},
|
||||
"url": {
|
||||
"$id": "#/properties/sites/items/properties/available_alternatives/items/properties/url",
|
||||
"type": "string",
|
||||
"title": "The url schema"
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
||||
},
|
||||
"main_domain": {
|
||||
"$id": "#/properties/sites/items/properties/main_domain",
|
||||
"type": "string",
|
||||
"title": "The main_domain schema"
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
||||
},
|
||||
"version": {
|
||||
"$id": "#/properties/version",
|
||||
"type": "string",
|
||||
"title": "The version schema"
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue