You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
recyclarr/src/TrashLib/Sonarr/Api/Schemas/SonarrReleaseProfileSchema.cs

165 lines
2.5 KiB

namespace TrashLib.Sonarr.Api.Schemas
{
public static class SonarrReleaseProfileSchema
{
public static string V1 => @"{
'definitions': {
'SonarrPreferredTerm': {
'type': [
'object',
'null'
],
'properties': {
'key': {
'type': [
'string',
'null'
]
},
'value': {
'type': 'integer'
}
}
}
},
'type': 'object',
'properties': {
'id': {
'type': 'integer'
},
'enabled': {
'type': 'boolean'
},
'name': {
'type': [
'string',
'null'
]
},
'required': {
'type': [
'string',
'null'
]
},
'ignored': {
'type': [
'string',
'null'
]
},
'preferred': {
'type': [
'array',
'null'
],
'items': {
'$ref': '#/definitions/SonarrPreferredTerm'
}
},
'includePreferredWhenRenaming': {
'type': 'boolean'
},
'indexerId': {
'type': 'integer'
},
'tags': {
'type': [
'array',
'null'
],
'items': {
'type': 'integer'
}
}
}
}";
public static string V2 => @"{
'definitions': {
'SonarrPreferredTerm': {
'type': [
'object',
'null'
],
'properties': {
'key': {
'type': [
'string',
'null'
]
},
'value': {
'type': 'integer'
}
}
}
},
'type': 'object',
'properties': {
'id': {
'type': 'integer'
},
'enabled': {
'type': 'boolean'
},
'name': {
'type': [
'string',
'null'
]
},
'required': {
'type': [
'array',
'null'
],
'items': {
'type': [
'string',
'null'
]
}
},
'ignored': {
'type': [
'array',
'null'
],
'items': {
'type': [
'string',
'null'
]
}
},
'preferred': {
'type': [
'array',
'null'
],
'items': {
'$ref': '#/definitions/SonarrPreferredTerm'
}
},
'includePreferredWhenRenaming': {
'type': 'boolean'
},
'indexerId': {
'type': 'integer'
},
'tags': {
'type': [
'array',
'null'
],
'items': {
'type': 'integer'
}
}
}
}
";
}
}