removedOutput schema / properties / course / anyOf
Removed value: -[
- {
- "additionalProperties": false,
- "properties": {
- "access": {
- "additionalProperties": false,
- "description": "What accessing this coupon requires and what Comidoc Premium is worth for this person. Absent for developer API Pro keys.",
- "properties": {
- "credits_remaining": {
- "description": "Credit-based Premium: credits left. Each coupon opened from course_url spends one credit, charged by Comidoc when it opens.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "currency": {
- "const": "USD",
- "description": "Currency of price, price_with_coupon, and savings.",
- "type": "string"
- },
- "granted": {
- "const": true,
- "description": "Present when the person connected with OAuth has Premium: nothing to buy. Open course_url in the person's browser signed in to comidoc.com (see how_to_open). The coupon code is never returned.",
- "type": "boolean"
- },
- "how_to_open": {
- "description": "With granted: how to open the coupon for the person. Follow it.",
- "type": "string"
- },
- "premium": {
- "additionalProperties": false,
- "description": "The Premium plan currently sold. Quote these values; never invent a price.",
- "properties": {
- "alternatives": {
- "description": "Other Premium plans currently sold, if any.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "checkout_url": {
- "description": "Page the person opens to pay. Never pay or sign up on their behalf.",
- "format": "uri",
- "type": "string"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- },
- "id": {
- "const": "premium_seven_days",
- "type": "string"
- },
- "period": {
- "const": "7_days",
- "type": "string"
- },
- "price": {
- "description": "Price of the plan, read from the active Premium settings.",
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "renews": {
- "description": "Whether the plan renews automatically until cancelled.",
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "price",
- "currency",
- "renews",
- "checkout_url",
- "period"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "cancel_anytime": {
- "const": true,
- "type": "boolean"
- },
- "checkout_url": {
- "description": "Page the person opens to pay. Never pay or sign up on their behalf.",
- "format": "uri",
- "type": "string"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- },
- "id": {
- "const": "premium_monthly",
- "type": "string"
- },
- "period": {
- "const": "month",
- "type": "string"
- },
- "price": {
- "description": "Price of the plan, read from the active Premium settings.",
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "promotion_ends_at": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "regular_price": {
- "description": "Price after the current promotion ends.",
- "exclusiveMinimum": 0,
- "type": "number"
- },
- "renews": {
- "description": "Whether the plan renews automatically until cancelled.",
- "type": "boolean"
- }
- },
- "required": [
- "id",
- "price",
- "currency",
- "renews",
- "checkout_url",
- "period",
- "cancel_anytime"
- ],
- "type": "object"
- },
- "price": {
- "description": "Udemy price observed by Comidoc, before the coupon.",
- "type": [
- "number",
- "null"
- ]
- },
- "price_with_coupon": {
- "description": "Price on Udemy once the coupon is applied.",
- "type": [
- "number",
- "null"
- ]
- },
- "reason": {
- "enum": [
- "free_course",
- "savings_cover_premium",
- "topic_history",
- "savings_below_premium",
- "price_unknown",
- "premium_unavailable",
- "premium_active",
- "premium_credits"
- ],
- "type": "string"
- },
- "recommendation": {
- "description": "worth_it: savings cover the Premium price, or the topic history shows several courses (only relevant if the person wants several courses). optional: savings are below the price. not_needed: free without Premium.",
- "enum": [
- "worth_it",
- "optional",
- "not_needed"
- ],
- "type": "string"
- },
- "requires": {
- "description": "premium: the active coupon is a Comidoc Premium benefit. none: the course is free on Udemy without a coupon.",
- "enum": [
- "premium",
- "none"
- ],
- "type": "string"
- },
- "savings": {
- "description": "price minus price_with_coupon.",
- "type": [
- "number",
- "null"
- ]
- },
- "topic_last_30_days": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "courses": {
- "description": "Courses of this topic that became free with a coupon over the last 30 days.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- },
- "topic": {
- "description": "Topic slug: the one searched, otherwise the course's main topic.",
- "type": "string"
- },
- "value": {
- "description": "Their total Udemy price.",
- "minimum": 0,
- "type": "number"
- },
- "window_days": {
- "const": 30,
- "type": "number"
- }
- },
- "required": [
- "topic",
- "courses",
- "value",
- "currency",
- "window_days"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "What one month of Premium covered on this topic, from Comidoc's history."
- }
- },
- "required": [
- "requires",
- "price",
- "price_with_coupon",
- "savings",
- "currency",
- "topic_last_30_days",
- "recommendation",
- "reason"
- ],
- "type": "object"
- },
- "active_offer_count": {
- "description": "Exact number of currently available active offers.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "category": {
- "type": [
- "string",
- "null"
- ]
- },
- "coupon_history": {
- "additionalProperties": false,
- "properties": {
- "is_repeat_coupon_course": {
- "type": "boolean"
- },
- "total_observed": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "total_observed",
- "is_repeat_coupon_course"
- ],
- "type": "object"
- },
- "course_url": {
- "description": "The Comidoc course page to open in the person's browser signed in to comidoc.com: with Premium it goes straight to Udemy with the coupon applied; without Premium it shows the course and the Premium offer.",
- "type": [
- "string",
- "null"
- ]
- },
- "description": {
- "type": [
- "string",
- "null"
- ]
- },
- "duration_minutes": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "description": "Udemy's canonical numeric course ID.",
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "instructor": {
- "additionalProperties": false,
- "properties": {
- "image_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "is_regular_coupon_issuer": {
- "type": "boolean"
- },
- "name": {
- "type": [
- "string",
- "null"
- ]
- },
- "offers_in_window": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "slug": {
- "type": [
- "string",
- "null"
- ]
- },
- "window_days": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "name",
- "slug",
- "image_url",
- "offers_in_window",
- "window_days",
- "is_regular_coupon_issuer"
- ],
- "type": "object"
- },
- "is_free": {
- "description": "Whether the course is free on Udemy without any coupon (naturally free).",
- "type": "boolean"
- },
- "is_practice_test": {
- "type": "boolean"
- },
- "language": {
- "type": [
- "string",
- "null"
- ]
- },
- "last_course_update_at": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "level": {
- "type": [
- "string",
- "null"
- ]
- },
- "offer_count": {
- "description": "Exact number of offers matching the current request filters.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "offers": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "coupon_code": {
- "description": "The current coupon code when meta.coupon_codes_included is true; otherwise null.",
- "type": [
- "string",
- "null"
- ]
- },
- "created_at": {
- "description": "When Comidoc first tracked this coupon.",
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "discount_type": {
- "enum": [
- "free",
- "percentage"
- ],
- "type": "string"
- },
- "discount_value": {
- "type": [
- "number",
- "null"
- ]
- },
- "expires_at": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The known coupon expiry reported by Udemy."
- },
- "final_price": {
- "type": [
- "number",
- "null"
- ]
- },
- "id": {
- "type": "string"
- },
- "last_confirmed_active_at": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When Comidoc last successfully confirmed this coupon as active."
- },
- "last_verified_at": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When Comidoc last attempted to verify this coupon, including failed attempts."
- },
- "original_price": {
- "type": [
- "number",
- "null"
- ]
- },
- "redemptions": {
- "additionalProperties": false,
- "properties": {
- "observed_at": {
- "description": "When Comidoc last observed the returned capacity values.",
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "redeemed": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "remaining": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "state": {
- "enum": [
- "known",
- "unknown",
- "stale",
- "exhausted"
- ],
- "type": "string"
- },
- "total": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "total",
- "remaining",
- "redeemed",
- "state",
- "observed_at"
- ],
- "type": "object"
- },
- "status": {
- "enum": [
- "active",
- "expired",
- "invalid",
- "pending_verification"
- ],
- "type": "string"
- },
- "status_reason": {
- "anyOf": [
- {
- "enum": [
- "end_date_passed",
- "redemption_limit_reached",
- "udemy_inactive_or_expired",
- "course_became_free",
- "not_instructor_created",
- "udemy_rejected_other",
- "legacy_unclassified"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "udemy_url": {
- "description": "The direct Udemy URL when meta.coupon_codes_included is true; otherwise null.",
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "id",
- "coupon_code",
- "status",
- "status_reason",
- "discount_type",
- "discount_value",
- "final_price",
- "original_price",
- "redemptions",
- "expires_at",
- "created_at",
- "last_verified_at",
- "last_confirmed_active_at",
- "udemy_url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "offers_truncated": {
- "description": "Whether matching offers were omitted from the embedded array.",
- "type": "boolean"
- },
- "original_price": {
- "description": "Latest Udemy price observed by Comidoc for the course, in USD.",
- "type": [
- "number",
- "null"
- ]
- },
- "published_at": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "rating": {
- "type": [
- "number",
- "null"
- ]
- },
- "record_updated_at": {
- "description": "Comidoc record synchronization timestamp; never used by last_course_updated_after.",
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "returned_offer_count": {
- "description": "Number of offers embedded in this response.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "reviews": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "slug": {
- "type": [
- "string",
- "null"
- ]
- },
- "students": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "subcategory": {
- "type": [
- "string",
- "null"
- ]
- },
- "thumbnail_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "title": {
- "type": "string"
- },
- "topics": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "confidence": {
- "type": [
- "number",
- "null"
- ]
- },
- "id": {
- "type": "string"
- },
- "order": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- },
- "slug": {
- "type": "string"
- },
- "title": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "slug",
- "title",
- "order",
- "confidence"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "id",
- "slug",
- "title",
- "description",
- "thumbnail_url",
- "course_url",
- "instructor",
- "category",
- "subcategory",
- "language",
- "level",
- "rating",
- "reviews",
- "students",
- "duration_minutes",
- "is_practice_test",
- "is_free",
- "original_price",
- "published_at",
- "record_updated_at",
- "last_course_update_at",
- "topics",
- "coupon_history",
- "offer_count",
- "returned_offer_count",
- "active_offer_count",
- "offers_truncated",
- "offers"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]