Schema.org Boolean Type, True and False Values, and Flag Properties
How Schema.org Boolean works, when to use True and False, flag properties by domain, and exceptions such as acceptsReservations and publicAccess.
This page summarizes Schema.org documentation on the Boolean data type, the typed values True and False, and the properties whose values are booleans (yes/no flags). Publishers add these fields in JSON-LD or other structured data when a simple true/false fact should be machine-readable alongside human-readable page content.
Boolean data type: what true and false mean in Schema.org
Section titled “Boolean data type: what true and false mean in Schema.org”Schema.org treats Boolean as a dedicated data type whose legal values are exactly true or false in the vocabulary sense, represented in markup most often as JSON booleans or as the schema.org types True and False.
Boolean: True or False.
— Schema.org, Boolean
The vocabulary also defines singleton types for each literal:
The boolean value true.
— Schema.org, True
The boolean value false.
— Schema.org, False
In JSON-LD, true and false are the usual encoding. Processors that understand Schema.org map these to the same meaning as https://schema.org/True and https://schema.org/False when those forms appear. The important design point is semantic: the property answers a closed question with no third “unknown” value unless the specification says otherwise.
When you need a Boolean property instead of plain text
Section titled “When you need a Boolean property instead of plain text”Use a Boolean-typed property when the underlying fact is genuinely binary (allowed or not, included or not, immediate start or not) and the term is defined on a specific type such as JobPosting or Place. Plain visible text (“No smoking”) does not replace structured data; the boolean flag tells consuming applications which field to read without parsing prose.
Properties whose values are Boolean: overview by use case
Section titled “Properties whose values are Boolean: overview by use case”The Boolean type lists every property that may take a Boolean value. The cluster spans commerce, jobs, health, lodging, media, and form metadata. The table below groups the most common publisher scenarios; each name links to its canonical definition.
| Scenario | Property | Main type(s) | Role of the flag |
|---|---|---|---|
| Jobs | directApply | JobPosting | Can the job be applied for online from the posting URL? |
| Jobs | experienceInPlaceOfEducation | JobPosting | Experience can satisfy education requirements |
| Jobs | jobImmediateStart | JobPosting | Position available for immediate start |
| Food & places | acceptsReservations | FoodEstablishment | Reservations accepted (see exceptions below) |
| Food & places | hasDriveThroughService | Place (e.g. FoodEstablishment) | Drive-through service available |
| Lodging | petsAllowed | Accommodation, LodgingBusiness, … | Pets allowed (boolean or text detail) |
| Places | publicAccess | Place | Open to public visitors |
| Places | smokingAllowed | Place | Smoking permitted on premises |
| Media & content | isAccessibleForFree | CreativeWork, Event, Place | Free access |
| Media & content | isFamilyFriendly | CreativeWork, Offer, Product | Family-friendly content |
| Media & content | requiresSubscription | MediaObject, ActionAccessSpecification | Subscription required to use media |
| Media & content | isLiveBroadcast | BroadcastEvent | Live vs non-live broadcast |
| Health | isAcceptingNewPatients | MedicalOrganization | Accepting new patients |
| Health | offersPrescriptionByMail | HealthPlanFormulary | Mail delivery of prescriptions |
| Commerce | inStoreReturnsOffered | MerchantReturnPolicy | In-store returns available |
| Commerce | valueAddedTaxIncluded | PriceSpecification | VAT included in stated price |
| Books | abridged | Book | Abridged edition |
| Finance | domiciledMortgage | MortgageLoan | Borrower resident in property jurisdiction |
| Finance | recourseLoan | LoanOrCredit | Recovery limited to security vs recourse |
| Finance | renegotiableLoan | LoanOrCredit | Interest terms renegotiable |
| Pharmacy | isAvailableGenerically | Drug | Generic form available |
| Pharmacy | isProprietary | Drug, DietarySupplement | Proprietary vs generic name |
| 3D & shipping | isResizable | 3DModel | Model may be resized |
| 3D & shipping | isUnlabelledFallback | DeliveryTimeSettings, ShippingRateSettings | Unlabelled default shipping settings |
| Orders | isGift | Order | Purchase accepted as a gift |
| Form specs | readonlyValue | PropertyValueSpecification | Field not mutable (default false) |
| Form specs | valueRequired | PropertyValueSpecification | Field required (default false) |
| Form specs | multipleValues | PropertyValueSpecification | Multiple values allowed (default false) |
Usage breadth on the public web (from figures on individual property pages) varies widely—for example valueRequired and valueAddedTaxIncluded appear on many domains, while niche medical or mortgage flags are rare. That reflects publisher adoption, not whether the definition allows a Boolean.
JobPosting flags: directApply and related booleans
Section titled “JobPosting flags: directApply and related booleans”Job listings are a common place where incorrect booleans distort eligibility in downstream job surfaces. directApply is defined precisely:
Indicates whether an url that is associated with a JobPosting enables direct application for the job, via the posting website. A job posting is considered to have directApply of True if an application process for the specified job can be directly initiated via the url(s) given (noting that e.g. multiple internet domains might nevertheless be involved at an implementation level). A value of False is appropriate if there is no clear path to applying directly online for the specified job, navigating directly from the JobPosting url(s) supplied.
— Schema.org, directApply
Set directApply to true only when the candidate can start an application from the URLs you provide without an opaque intermediate step (aggregators that only link out often warrant false). experienceInPlaceOfEducation means experience can substitute for formal qualifications when true—satisfying either requirement is enough. jobImmediateStart is a separate immediate-availability flag (jobImmediateStart).
Places, lodging, and accessibility flags
Section titled “Places, lodging, and accessibility flags”Place-related booleans describe rules and access that users often search for explicitly.
publicAccess signals whether a Place is open to public visitors. Unlike many flags, omission does not imply false:
If this property is omitted there is no assumed default boolean value.
— Schema.org, publicAccess
Only add the property when you can state the fact; do not set false merely because the field is absent.
smokingAllowed and petsAllowed answer policy questions. petsAllowed may be Boolean or, for nuance, a text value (petsAllowed). hasDriveThroughService applies to facilities such as restaurants or testing sites (hasDriveThroughService).
For free access, prefer isAccessibleForFree on CreativeWork, Event, or Place. The older free on PublicationEvent is superseded (free); new markup should use isAccessibleForFree instead of duplicating both.
Commerce, media, and price booleans
Section titled “Commerce, media, and price booleans”valueAddedTaxIncluded on PriceSpecification states whether VAT is included in the price—a high-adoption boolean on retail markup. inStoreReturnsOffered on MerchantReturnPolicy is a simple in-store return yes/no; richer return flows use other return properties as noted on that page.
requiresSubscription on media indicates paid or free subscription requirement; allowed values are true or false, with legacy yes/no noted in the definition:
Allowed values are true or false (note that an earlier version had ‘yes’, ‘no’).
— Schema.org, requiresSubscription
isFamilyFriendly and isLiveBroadcast are straightforward content and event flags (isFamilyFriendly, isLiveBroadcast).
acceptsReservations: not only Boolean
Section titled “acceptsReservations: not only Boolean”acceptsReservations is the main exception in this cluster where the value is not limited to Boolean:
Values can be Boolean, an URL at which reservations can be made or (for backwards compatibility) the strings Yes or No.
— Schema.org, acceptsReservations
Prefer boolean true/false or a reservation URL when you have one; avoid legacy "Yes"/"No" strings in new data unless you must interoperate with older consumers.
PropertyValueSpecification: readonlyValue, valueRequired, multipleValues
Section titled “PropertyValueSpecification: readonlyValue, valueRequired, multipleValues”These booleans describe HTML-like form constraints in structured specifications, not visible page copy.
readonlyValue defaults to false; when true with a value present, behavior is like a hidden input (readonlyValue). valueRequired defaults to false and marks whether a field must be filled (valueRequired). multipleValues defaults to false and controls whether several values are allowed (multipleValues).
The Boolean page also notes formatting rules for numeric value on QuantitativeValue and related types: use ASCII digits and . as the decimal separator—relevant when booleans appear beside measured values in the same graph.
Shipping and 3D: isUnlabelledFallback and isResizable
Section titled “Shipping and 3D: isUnlabelledFallback and isResizable”isUnlabelledFallback applies when DeliveryTimeSettings or ShippingRateSettings act as merchant-wide defaults linked via shippingSettingsLink. It must not be true alongside transitTimeLabel or shippingLabel, because it is only for unlabelled settings (isUnlabelledFallback).
isResizable on 3DModel indicates whether clients may resize the model—room planners often set false so dimensions stay realistic.
Common mistakes when marking up boolean properties
Section titled “Common mistakes when marking up boolean properties”- Setting directApply to true when the URL only lists the job or sends users to a third-party apply flow with no direct start from that URL.
- Using free on new events instead of isAccessibleForFree.
- Treating omitted publicAccess as false; Schema.org assumes no default when the property is missing.
- Using
"Yes"/"No"on acceptsReservations or requiresSubscription in new JSON-LD instead of booleans. - Marking petsAllowed as false while the page text allows pets with restrictions—use a text value when rules are conditional.
- Setting isUnlabelledFallback to true while also supplying transit or shipping labels, which the definition marks as meaningless.
Minimal JSON-LD examples
Section titled “Minimal JSON-LD examples”Job posting with a direct-apply flag:
{ "@context": "https://schema.org", "@type": "JobPosting", "title": "Example role", "directApply": true}Place with explicit public access (only when known):
{ "@context": "https://schema.org", "@type": "Restaurant", "name": "Example", "publicAccess": true, "smokingAllowed": false}Price with VAT included:
{ "@context": "https://schema.org", "@type": "Offer", "priceSpecification": { "@type": "PriceSpecification", "price": "19.99", "priceCurrency": "EUR", "valueAddedTaxIncluded": true }}How to check this on your site
Section titled “How to check this on your site”-
Open the canonical Schema.org page for each boolean property you use (for example directApply, isAccessibleForFree, publicAccess) and confirm the definition still matches your page facts, including defaults and superseded terms such as free.
-
On your published markup, verify that Boolean properties use JSON
true/false(or equivalent) and that exceptions are respected—acceptsReservations may be a URL, and petsAllowed may be text when policies are not strictly yes/no. -
Cross-check the complete list of Boolean-valued properties on Boolean so you do not assign a boolean to a property that expects another type on your chosen
@type. -
Re-read edge-case definitions for your domain (JobPosting apply URLs, isUnlabelledFallback with labels, requiresSubscription legacy string values).
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page disagrees with the current Schema.org definitions or you need a clarification, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.