-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"$schema": "http://json-schema.org/draft-07/schema#","title": "JSON Schema for animeApi base, support for v2 and v3","definitions": {"stringnull": {"anyOf": [{ "type": "string" }, { "type": "null" }],"$comment": "Type: string or null"},"numbernull": {"anyOf": [{ "type": "number" }, { "type": "null" }],"$comment": "Type: number or null"},"trakttype": {"anyOf": [{ "type": "string", "enum": ["movies", "shows"] },{ "type": "null" }],"$comment": "Type: 'movies', 'shows', or null"},"themoviedbtype": {"anyOf": [{ "type": "string", "enum": ["movie", "tv"] },{ "type": "null" }],"$comment": "Type: 'movie', 'tv', or null"},"anime": {"$comment": "Interface: Anime","type": "object","properties": {"title": {"title": "Title","description": "Title of the anime","type": "string"},"anidb": {"title": "aniDB","description": "aniDB ID, website: https://anidb.net/","$ref": "#/definitions/numbernull"},"anilist": {"title": "AniList","description": "AniList ID, website: https://anilist.co/","$ref": "#/definitions/numbernull"},"animeplanet": {"title": "Anime-Planet","description": "Anime-Planet slug, website: https://www.anime-planet.com/","$ref": "#/definitions/stringnull","pattern": "^[a-z0-9\\-]+$"},"anisearch": {"title": "AniSearch","description": "AniSearch ID, website: https://www.anisearch.com/, https://anisearch.de, https://anisearch.it, https://anisearch.es, https://anisearch.fr, https://anisearch.jp","$ref": "#/definitions/numbernull"},"annict": {"title": "Annict","description": "Annict ID, website: https://annict.com/, https://en.annict.com/, https://annict.jp/","$ref": "#/definitions/numbernull"},"imdb": {"title": "IMDb","description": "IMDb ID, website: https://www.imdb.com/","$ref": "#/definitions/stringnull","pattern": "^tt[\\d]+$"},"kaize": {"title": "Kaize","description": "Kaize slug, website: https://kaize.io/","$ref": "#/definitions/stringnull","pattern": "^[a-z0-9\\-]+$"},"kaize_id": {"title": "Kaize ID","description": "Kaize ID in integer format, not recommended as some entry can't be found its ID compared to slug","$ref": "#/definitions/numbernull"},"kitsu": {"title": "Kitsu","description": "Kitsu ID in integer, slug not suppported, website: https://kitsu.io/","$ref": "#/definitions/numbernull"},"livechart": {"title": "LiveChart","description": "LiveChart ID, website: https://www.livechart.me/","$ref": "#/definitions/numbernull"},"myanimelist": {"title": "MyAnimeList","description": "MyAnimeList ID, website: https://myanimelist.net/","$ref": "#/definitions/numbernull"},"nautiljon": {"title": "Nautiljon","description": "Nautiljon slug in plus, website: https://www.nautiljon.com/","$ref": "#/definitions/stringnull"},"nautiljon_id": {"title": "Nautiljon ID","description": "Nautiljon ID in integer format, used internally","$ref": "#/definitions/numbernull"},"notify": {"title": "Notify.moe","description": "Notify.moe Base64 ID, website: https://notify.moe/","$ref": "#/definitions/stringnull","pattern": "^[a-zA-Z0-9\\-\\_]+$"},"otakotaku": {"title": "Otak Otaku","description": "Otak Otaku ID, website: https://otakotaku.com/","$ref": "#/definitions/numbernull"},"shikimori": {"title": "Shikimori/Шикимори","description": "Shikimori ID (nonprefixed), based on MyAnimeList ID. Remove prefix if found on the ID, website: https://shikimori.one/","$ref": "#/definitions/numbernull"},"shoboi": {"title": "Shoboi/Syobocal/しょぼいカレンダー","description": "Shoboi ID, website: http://cal.syoboi.jp/","$ref": "#/definitions/numbernull"},"silveryasha": {"title": "Silveryasha","description": "Silveryasha ID, website: https://db.silveryasha.web.id/","$ref": "#/definitions/numbernull"},"themoviedb": {"title": "The Movie Database (TMDB)","description": "The Movie Database ID, website: https://www.themoviedb.org/","$ref": "#/definitions/numbernull"},"themoviedb_type": {"title": "The Movie Database (TMDB) Type","description": "The Movie Database type, either 'movies' or 'shows'","$ref": "#/definitions/themoviedbtype"},"themoviedb_season": {"title": "The Movie Database (TMDB) Season","description": "The Movie Database season number, only used if themoviedb_type is 'shows', else null","$ref": "#/definitions/numbernull"},"trakt": {"title": "Trakt","description": "Trakt ID, slug not supported, website: https://trakt.tv/","$ref": "#/definitions/numbernull"},"trakt_type": {"title": "Trakt Type","description": "Trakt type, either 'movies' or 'shows'","$ref": "#/definitions/trakttype"},"trakt_season": {"title": "Trakt Season","description": "Trakt season number, only used if trakt_type is 'shows', else null","$ref": "#/definitions/numbernull"}},"required": ["title","anidb","anilist","animeplanet","anisearch","annict","kaize","kitsu","livechart","myanimelist","notify","otakotaku","shikimori","shoboi","silveryasha","trakt","trakt_type","trakt_season"],"additionalProperties": false}},"oneOf": [{"$comment": "Use this schema if you want to validate an array of anime","type": "array","items": { "$ref": "#/definitions/anime" }},{"$comment": "Use this schema if you want to validate an object known in each provider","type": "object","oneOf": [{"$ref": "#/definitions/anime"},{"additionalProperties": {"$ref": "#/definitions/anime"}}]}]} | ||
{"$schema": "http://json-schema.org/draft-07/schema#","title": "JSON Schema for animeApi base, support for v2 and v3","definitions": {"stringnull": {"anyOf": [{ "type": "string" }, { "type": "null" }],"$comment": "Type: string or null"},"numbernull": {"anyOf": [{ "type": "number" }, { "type": "null" }],"$comment": "Type: number or null"},"trakttype": {"anyOf": [{ "type": "string", "enum": ["movies", "shows"] },{ "type": "null" }],"$comment": "Type: 'movies', 'shows', or null"},"themoviedbtype": {"anyOf": [{ "type": "string", "enum": ["movie", "tv"] },{ "type": "null" }],"$comment": "Type: 'movie', 'tv', or null"},"anime": {"$comment": "Interface: Anime","type": "object","properties": {"title": {"title": "Title","description": "Title of the anime","type": "string"},"anidb": {"title": "aniDB","description": "aniDB ID, website: https://anidb.net/","$ref": "#/definitions/numbernull"},"anilist": {"title": "AniList","description": "AniList ID, website: https://anilist.co/","$ref": "#/definitions/numbernull"},"animeplanet": {"title": "Anime-Planet","description": "Anime-Planet slug, website: https://www.anime-planet.com/","$ref": "#/definitions/stringnull","pattern": "^[a-z0-9\\-]+$"},"anisearch": {"title": "AniSearch","description": "AniSearch ID, website: https://www.anisearch.com/, https://anisearch.de, https://anisearch.it, https://anisearch.es, https://anisearch.fr, https://anisearch.jp","$ref": "#/definitions/numbernull"},"annict": {"title": "Annict","description": "Annict ID, website: https://annict.com/, https://en.annict.com/, https://annict.jp/","$ref": "#/definitions/numbernull"},"imdb": {"title": "IMDb","description": "IMDb ID, website: https://www.imdb.com/","$ref": "#/definitions/stringnull","pattern": "^tt[\\d]+$"},"kaize": {"title": "Kaize","description": "Kaize slug, website: https://kaize.io/","$ref": "#/definitions/stringnull","pattern": "^[a-z0-9\\-]+$"},"kaize_id": {"title": "Kaize ID","description": "Kaize ID in integer format, not recommended as some entry can't be found its ID compared to slug","$ref": "#/definitions/numbernull"},"kitsu": {"title": "Kitsu","description": "Kitsu ID in integer, slug not suppported, website: https://kitsu.app/","$ref": "#/definitions/numbernull"},"livechart": {"title": "LiveChart","description": "LiveChart ID, website: https://www.livechart.me/","$ref": "#/definitions/numbernull"},"myanimelist": {"title": "MyAnimeList","description": "MyAnimeList ID, website: https://myanimelist.net/","$ref": "#/definitions/numbernull"},"nautiljon": {"title": "Nautiljon","description": "Nautiljon slug in plus, website: https://www.nautiljon.com/","$ref": "#/definitions/stringnull"},"nautiljon_id": {"title": "Nautiljon ID","description": "Nautiljon ID in integer format, used internally","$ref": "#/definitions/numbernull"},"notify": {"title": "Notify.moe","description": "Notify.moe Base64 ID, website: https://notify.moe/","$ref": "#/definitions/stringnull","pattern": "^[a-zA-Z0-9\\-\\_]+$"},"otakotaku": {"title": "Otak Otaku","description": "Otak Otaku ID, website: https://otakotaku.com/","$ref": "#/definitions/numbernull"},"shikimori": {"title": "Shikimori/Шикимори","description": "Shikimori ID (nonprefixed), based on MyAnimeList ID. Remove prefix if found on the ID, website: https://shikimori.one/","$ref": "#/definitions/numbernull"},"shoboi": {"title": "Shoboi/Syobocal/しょぼいカレンダー","description": "Shoboi ID, website: http://cal.syoboi.jp/","$ref": "#/definitions/numbernull"},"silveryasha": {"title": "Silveryasha","description": "Silveryasha ID, website: https://db.silveryasha.web.id/","$ref": "#/definitions/numbernull"},"themoviedb": {"title": "The Movie Database (TMDB)","description": "The Movie Database ID, website: https://www.themoviedb.org/","$ref": "#/definitions/numbernull"},"themoviedb_type": {"title": "The Movie Database (TMDB) Type","description": "The Movie Database type, either 'movies' or 'shows'","$ref": "#/definitions/themoviedbtype"},"themoviedb_season": {"title": "The Movie Database (TMDB) Season","description": "The Movie Database season number, only used if themoviedb_type is 'shows', else null","$ref": "#/definitions/numbernull"},"trakt": {"title": "Trakt","description": "Trakt ID, slug not supported, website: https://trakt.tv/","$ref": "#/definitions/numbernull"},"trakt_type": {"title": "Trakt Type","description": "Trakt type, either 'movies' or 'shows'","$ref": "#/definitions/trakttype"},"trakt_season": {"title": "Trakt Season","description": "Trakt season number, only used if trakt_type is 'shows', else null","$ref": "#/definitions/numbernull"}},"required": ["title","anidb","anilist","animeplanet","anisearch","annict","kaize","kitsu","livechart","myanimelist","notify","otakotaku","shikimori","shoboi","silveryasha","trakt","trakt_type","trakt_season"],"additionalProperties": false}},"oneOf": [{"$comment": "Use this schema if you want to validate an array of anime","type": "array","items": { "$ref": "#/definitions/anime" }},{"$comment": "Use this schema if you want to validate an object known in each provider","type": "object","oneOf": [{"$ref": "#/definitions/anime"},{"additionalProperties": {"$ref": "#/definitions/anime"}}]}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters