Skip to content
/ std Public

A growing collection of hand-crafted high-quality schemas by Sourcemeta. From RFC-compliant Email Address schemas to ISO-compliant Currency Codes.

License

Notifications You must be signed in to change notification settings

sourcemeta/std

Repository files navigation

Sourcemeta JSON Schema Standard Library


Browse the schemas at https://schemas.sourcemeta.com/sourcemeta/std


Building professional OpenAPI specifications demands precision, but mastering JSON Schema is hard. This library eliminates that burden by providing production-ready schemas that encode industry standards and best practices. Reference them directly in your API specifications and focus on what matters: designing great APIs.

Led and maintained by a member of the JSON Schema Technical Steering Committee

Use this library to:

  • Build production-grade OpenAPI specifications without writing schemas from scratch
  • Skip the JSON Schema learning curve while maintaining expert-level quality
  • Meet compliance and regulatory requirements with standards-based validation
  • Establish a solid foundation for your organisation's API governance program

Warning

This project is in its early stages with much more to come. We need your feedback to shape its future. Please share your thoughts and suggestions on what you would like to see.

Note

All schemas target JSON Schema 2020-12, the dialect used by OpenAPI v3.1 and later. Earlier JSON Schema dialects will be supported in the future.

📘 Standards

This library provides schemas that encode aspects of the following standards. Note that these standards often contain concepts and specifications that cannot be represented as schemas. We extract and formalize the portions that can be expressed as JSON Schema definitions.

Organisation Standard Title
IEEE IEEE Std 1003.1-2017 IEEE Standard for Information Technology—Portable Operating System Interface (POSIX) Base Specifications, Issue 7
IETF RFC 3986 Uniform Resource Identifier (URI): Generic Syntax
IETF RFC 4918 HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)
IETF RFC 5322 Internet Message Format
IETF RFC 5789 PATCH Method for HTTP
IETF RFC 6901 JavaScript Object Notation (JSON) Pointer
IETF RFC 7807 Problem Details for HTTP APIs
IETF RFC 8141 Uniform Resource Names (URNs)
IETF RFC 9110 HTTP Semantics
ISO ISO 4217 Codes for the representation of currencies and funds
ISO ISO 8601-1:2019 Date and time — Representations for information interchange — Part 1: Basic rules
ISO ISO 80000-1:2022 Quantities and units — Part 1: General
ISO/IEC ISO/IEC 2382:2015 Information technology — Vocabulary
JSON-RPC JSON-RPC 2.0 JSON-RPC 2.0 Specification
JSON Schema Draft 2020-12 JSON Schema: A Media Type for Describing JSON Documents

To request coverage of another standard, please open an issue on GitHub.

📄 License

While the project is publicly available on GitHub, it operates under a source-available license rather than a traditional open-source model. You may freely use these schemas for non-commercial purposes, but commercial use requires a paid commercial license.

We are happy to discuss OEM and white-label distribution options for incorporating these schemas into commercial products.

🤝 Contributing

We welcome contributions! By sending a pull request, you agree to our contributing guidelines. Meaningful contributions to this repository can be taken into consideration towards a discounted (or even free) commercial license.

Tip

Do you want to level up your JSON Schema skills? Check out learnjsonschema.com, our growing JSON Schema documentation website, and our O'Reilly book Unifying Business, Data, and Code: Designing Data Products with JSON Schema.

📧 Contact

If you have any questions or comments, don't hesitate in opening a ticket on GitHub Discussions or writing to us at hello@sourcemeta.com.

About

A growing collection of hand-crafted high-quality schemas by Sourcemeta. From RFC-compliant Email Address schemas to ISO-compliant Currency Codes.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project