Skip to content

Docs: add real-world usage examples for common schema types#209

Merged
Eyas merged 2 commits intogoogle:mainfrom
cochinescu:docs/extend-usage-examples
Mar 21, 2026
Merged

Docs: add real-world usage examples for common schema types#209
Eyas merged 2 commits intogoogle:mainfrom
cochinescu:docs/extend-usage-examples

Conversation

@cochinescu
Copy link
Copy Markdown
Contributor

Summary

Adds a "Real-world examples" section to the README with typed examples for the most common Schema.org types: Organization, WebSite, Product with Offer, FAQPage, and Article.

Also includes a note about XSS-safe serialization when injecting JSON-LD into <script> tags, since this is a common pitfall (as noted in #112).

Closes #112

Add examples for Organization, WebSite, Product, FAQPage, and Article schemas. Include a note about XSS-safe serialization when injecting JSON-LD into HTML.

Closes google#112
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Mar 21, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Comment thread README.md Outdated
@cochinescu cochinescu requested a review from Eyas March 21, 2026 18:37
@Eyas Eyas merged commit b826702 into google:main Mar 21, 2026
3 of 5 checks passed
@cochinescu cochinescu deleted the docs/extend-usage-examples branch March 23, 2026 09:56
@Eyas
Copy link
Copy Markdown
Collaborator

Eyas commented Mar 23, 2026

This is in https://github.com/google/schema-dts/releases/tag/v2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Extend exemplary usage

2 participants