{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://bluejettyai.com/schemas/v0.1/entity.schema.json","title":"App Index Entity 0.1","type":"object","required":["specVersion","id","type","name","destinations"],"properties":{"$schema":{"type":"string","format":"uri"},"specVersion":{"const":"0.1"},"id":{"type":"string","minLength":1,"maxLength":256,"pattern":"^[^\\s]+$"},"type":{"oneOf":[{"enum":["workout","trail","restaurant","product","event","article","other"]},{"type":"string","format":"uri","pattern":"^https://"}]},"nativeType":{"type":"string","minLength":1,"maxLength":128},"name":{"type":"string","minLength":1,"maxLength":240},"summary":{"type":"string","minLength":1,"maxLength":1000},"updatedAt":{"type":"string","format":"date-time"},"language":{"type":"string","pattern":"^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"},"localized":{"type":"array","items":{"$ref":"#/$defs/localizedText"},"minItems":1},"canonicalUrl":{"type":"string","format":"uri","pattern":"^https://"},"schemaTypes":{"type":"array","items":{"type":"string","format":"uri","pattern":"^https://schema.org/"},"uniqueItems":true,"minItems":1},"attributes":{"type":"object","propertyNames":{"pattern":"^[A-Za-z][A-Za-z0-9._-]{0,127}$"},"additionalProperties":{"$ref":"#/$defs/attributeValue"}},"availability":{"$ref":"#/$defs/availability"},"relationships":{"type":"array","items":{"$ref":"#/$defs/relationship"}},"destinations":{"type":"array","items":{"$ref":"https://bluejettyai.com/schemas/v0.1/destination.schema.json"},"minItems":1},"extensions":{"$ref":"#/$defs/extensions"}},"$defs":{"primitive":{"oneOf":[{"type":"string","maxLength":2000},{"type":"number"},{"type":"boolean"}]},"attributeValue":{"type":"object","required":["value"],"properties":{"value":{"oneOf":[{"$ref":"#/$defs/primitive"},{"type":"array","items":{"$ref":"#/$defs/primitive"},"minItems":1,"uniqueItems":true}]},"unit":{"type":"string","minLength":1,"maxLength":64},"vocabulary":{"type":"string","minLength":1,"maxLength":256},"language":{"type":"string","pattern":"^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"}},"additionalProperties":false},"localizedText":{"type":"object","required":["language","name"],"properties":{"language":{"type":"string","pattern":"^[A-Za-z]{2,8}(?:-[A-Za-z0-9]{1,8})*$"},"name":{"type":"string","minLength":1,"maxLength":240},"summary":{"type":"string","minLength":1,"maxLength":1000}},"additionalProperties":false},"availability":{"type":"object","required":["status"],"properties":{"status":{"enum":["available","unavailable","limited","preorder","scheduled","unknown"]},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string","format":"date-time"},"regions":{"type":"array","items":{"type":"string","pattern":"^[A-Z]{2}$"},"uniqueItems":true,"minItems":1}},"additionalProperties":false},"relationship":{"type":"object","required":["type","targetId"],"properties":{"type":{"type":"string","minLength":1,"maxLength":128},"targetId":{"type":"string","minLength":1,"maxLength":256}},"additionalProperties":false},"extensions":{"type":"object","propertyNames":{"pattern":"^(?:[a-z][a-z0-9-]*(?:\\.[a-z0-9-]+)+(?:/[A-Za-z0-9._~-]+)*|https://[^\\s]+)$"},"additionalProperties":true}},"additionalProperties":false}