85 lines
3.4 KiB
JSON
85 lines
3.4 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "schema:ActionAccessSpecification",
|
|
"title": "ActionAccessSpecification",
|
|
"description": "A set of requirements that must be fulfilled in order to perform an Action.",
|
|
"type": "object",
|
|
"allOf": [
|
|
{
|
|
"description": "A utility class that serves as the umbrella for a number of 'intangible' things such as quantities, structured values, etc.",
|
|
"$ref": "schema:Intangible"
|
|
}
|
|
],
|
|
"properties": {
|
|
"availabilityEnds": {
|
|
"description": "The end of the availability of the product or service included in the offer.",
|
|
"anyOf": [
|
|
{ "type": "string", "format": "date" },
|
|
{ "type": "string", "format": "date-time" },
|
|
{ "type": "string", "format": "time" }
|
|
]
|
|
},
|
|
"availabilityStarts": {
|
|
"description": "The beginning of the availability of the product or service included in the offer.",
|
|
"anyOf": [
|
|
{ "type": "string", "format": "date" },
|
|
{ "type": "string", "format": "date-time" },
|
|
{ "type": "string", "format": "time" }
|
|
]
|
|
},
|
|
"category": {
|
|
"description": "A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.",
|
|
"oneOf": [
|
|
{
|
|
"anyOf": [
|
|
{ "type": "string", "format": "uri" },
|
|
{ "type": "string" },
|
|
{ "$ref": "schema:CategoryCode" },
|
|
{ "$ref": "schema:PhysicalActivityCategory" },
|
|
{ "$ref": "schema:Thing" }
|
|
]
|
|
},
|
|
{
|
|
"type": "array",
|
|
"items": {
|
|
"anyOf": [
|
|
{ "type": "string", "format": "uri" },
|
|
{ "type": "string" },
|
|
{ "$ref": "schema:CategoryCode" },
|
|
{ "$ref": "schema:PhysicalActivityCategory" },
|
|
{ "$ref": "schema:Thing" }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"eligibleRegion": {
|
|
"description": "The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is valid.\\n\\nSee also [[ineligibleRegion]].\n ",
|
|
"anyOf": [
|
|
{ "type": "string" },
|
|
{ "$ref": "schema:GeoShape" },
|
|
{ "$ref": "schema:Place" }
|
|
]
|
|
},
|
|
"expectsAcceptanceOf": {
|
|
"description": "An Offer which must be accepted before the user can perform the Action. For example, the user may need to buy a movie before being able to watch it.",
|
|
"oneOf": [
|
|
{ "$ref": "schema:Offer" },
|
|
{ "type": "array", "items": { "$ref": "schema:Offer" } }
|
|
]
|
|
},
|
|
"ineligibleRegion": {
|
|
"description": "The ISO 3166-1 (ISO 3166-1 alpha-2) or ISO 3166-2 code, the place, or the GeoShape for the geo-political region(s) for which the offer or delivery charge specification is not valid, e.g. a region where the transaction is not allowed.\\n\\nSee also [[eligibleRegion]].\n ",
|
|
"anyOf": [
|
|
{ "type": "string" },
|
|
{ "$ref": "schema:GeoShape" },
|
|
{ "$ref": "schema:Place" }
|
|
]
|
|
},
|
|
"requiresSubscription": {
|
|
"description": "Indicates if use of the media require a subscription (either paid or free). Allowed values are ```true``` or ```false``` (note that an earlier version had 'yes', 'no').",
|
|
"anyOf": [{ "type": "boolean" }, { "$ref": "schema:MediaSubscription" }]
|
|
}
|
|
}
|
|
}
|