๐ŸŒ
JSON Schema
json-schema.org โ€บ understanding-json-schema โ€บ reference โ€บ type
JSON Schema - Type-specific Keywords
The type keyword is fundamental to JSON Schema because it specifies the data type that a schema should expect.
๐ŸŒ
Cswr
cswr.github.io โ€บ JsonSchema โ€บ spec โ€บ basic_types
Basic Types - JSON Schema
JSON Documents can be either basic values (strings, numbers, integers, the boolean constants or null), or ordered or unordered list of key:value pairs. We can use JSON Schema to specify that documents can be any of these. For now we concentrate on the specification for values.
Discussions

JSON SCHEMA: Can we do an either/or (string/int) for type? - Stack Overflow
I'm doing a schema to validate contact information. In the phone number validation, we have a country code. I am really hoping there's a way to allow the country code to either be a string or an in... More on stackoverflow.com
๐ŸŒ stackoverflow.com
It's 2023. Your API should have a schema
"It's {Current Year}" is the least compelling thing to put in the title I can think of. Maybe my API should have a schema, but looking at my calendar will give me no valid reasons as to why. More on reddit.com
๐ŸŒ r/programming
132
138
March 10, 2023
JSON Schema Registry : r/webdev
๐ŸŒ r/webdev
Json schema form UI builder library
I think you're looking for formly: https://formly.dev/ More on reddit.com
๐ŸŒ r/Angular2
24
7
August 23, 2022
๐ŸŒ
PyPI
pypi.org โ€บ project โ€บ types-jsonschema
types-jsonschema ยท PyPI
This is a type stub package for the jsonschema package. It can be used by type checkers to check code that uses jsonschema.
      ยป pip install types-jsonschema
    
Published ย  Feb 02, 2026
Version ย  4.26.0.20260202
๐ŸŒ
JSON Schema
json-schema.org โ€บ understanding-json-schema โ€บ reference โ€บ numeric
JSON Schema - Numeric types
There are two numeric types in JSON Schema: integer and number. They share the same validation keywords ยท JSON has no standard way to represent complex numbers, so there is no way to test for them in JSON Schema
๐ŸŒ
JSON Schema
json-schema.org โ€บ understanding-json-schema โ€บ reference
JSON Schema reference
Master the full power of JSON Schema with our reference documentation. From basic data types to advanced techniques like conditional validation and schema composition, you will learn everything about JSON Schema keywords through clear explanations and examples.
๐ŸŒ
npm
npmjs.com โ€บ package โ€บ @types โ€บ json-schema
types/json-schema
November 7, 2023 - TypeScript definitions for json-schema. Latest version: 7.0.15, last published: 2 years ago. Start using @types/json-schema in your project by running `npm i @types/json-schema`. There are 697 other projects in the npm registry using @types/json-schema.
      ยป npm install @types/json-schema
    
๐ŸŒ
Postman
blog.postman.com โ€บ home โ€บ json schema data types: a complete guide to validation
JSON Schema Data Types: A Complete Guide to Validation | Postman Blog
January 5, 2026 - Master JSON Schema data types: string, number, integer, boolean, null, object, and array. Learn validation rules, constraints, and testing in Postman.
๐ŸŒ
Cswr
cswr.github.io โ€บ JsonSchema โ€บ spec โ€บ multiple_types
Multiple Types - JSON Schema
So far we have only described how to specify types uniquely. But we could also specify that a certain document may be any number of types, such as string or integer, object or array, etc ยท The basic declaration of multiple types is through the "type" keyword, where we can now have an array ...
Find elsewhere
๐ŸŒ
Apidog
apidog.com โ€บ blog โ€บ json-schema-types
JSON Schema Types: A Comprehensive Guide
February 9, 2026 - JSON Schema specifies several data types, each with its unique properties and validation requirements. These types are crucial for defining the acceptable data format and values within a JSON document.
๐ŸŒ
Hackage
hackage.haskell.org โ€บ package โ€บ json-schema-0.7.4.2 โ€บ docs โ€บ Data-JSON-Schema-Types.html
Data.JSON.Schema.Types
Types for defining JSON schemas. Synopsis ยท class JSONSchema a where ยท data Schema ยท = Choice [Schema] | Object [Field] | Map Schema ยท | Array LengthBound Bool Schema ยท | Tuple [Schema] | Value LengthBound ยท | Boolean ยท | Number Bound ยท | Constant Value ยท
๐ŸŒ
GitHub
github.com โ€บ bwaidelich โ€บ types-jsonschema
GitHub - bwaidelich/types-jsonschema: Generator for JSON Schema files from PHP classes, see https://json-schema.org/
Integration for the wwwision/types package that allows to generate JSON Schema files from PHP code ... class Contact { public function __construct(public string $name, public int $age) {} } $schema = (new JsonSchemaGenerator())->fromClass(Contact::class); $expected = <<<JSON { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "additionalProperties": false, "required": [ "name", "age" ] } JSON; assert(json_encode($schema, JSON_PRETTY_PRINT) === $expected);
Author ย  bwaidelich
๐ŸŒ
JSON Schema
json-schema.org โ€บ understanding-json-schema โ€บ basics
JSON Schema - The basics
Of course, we wouldn't be using JSON Schema if we wanted to just accept any JSON document. The most common thing to do in a JSON Schema is to restrict to a specific type.
๐ŸŒ
JSON Schema
json-schema.org โ€บ draft โ€บ 2020-12 โ€บ json-schema-core
JSON Schema: A Media Type for Describing JSON Documents
JSON Schema defines the media type "application/schema+json", a JSON-based format for describing the structure of JSON data. JSON Schema asserts what a JSON document must look like, ways to extract information from it, and how to interact with it. The "application/schema-instance+json" media ...
๐ŸŒ
Standard JSON Schema
standardschema.dev โ€บ json-schema
Standard JSON Schema
A standardized JSON Schema representation that preserves inferred type information
๐ŸŒ
Opis
opis.io โ€บ json-schema โ€บ 2.x โ€บ structure.html
JSON Schema structure | Opis JSON Schema
The Basics Structure Generic keywords String type Number type Integer type Boolean type Null type Object type Array type Formats Default value Conditional subschemas Multiple subschemas
๐ŸŒ
MuleSoft
docs.mulesoft.com โ€บ dataweave โ€บ latest โ€บ dataweave-type-reuse-json-schema
Reusing Types from a JSON Schema | MuleSoft Documentation
Including the import directive from the above example in the script header loads all the existing types in the JSON schema. In import * from jsonschema!example::schema::Person, the only existing type is the Root type, specified at the root which describes an Object that can have three properties (firstName, lastName, and age).
๐ŸŒ
Zod
zod.dev โ€บ json-schema
JSON Schema | Zod
By default, the result of z.toJSONSchema represents the output type; use "io": "input" to extract the input type instead. const mySchema = z.string().transform(val => val.length).pipe(z.number()); // ZodPipe const jsonSchema = z.toJSONSchema(mySchema); // => { type: "number" } const jsonSchema = z.toJSONSchema(mySchema, { io: "input" }); // => { type: "string" }
๐ŸŒ
jsonschema
python-jsonschema.readthedocs.io
jsonschema 4.26.0 documentation
>>> validate(instance={"name" : "Eggs", "price" : 34.99}, schema=schema) >>> validate( ... instance={"name" : "Eggs", "price" : "Invalid"}, schema=schema, ... ) Traceback (most recent call last): ... ValidationError: 'Invalid' is not of type 'number' It can also be used from the command line by installing check-jsonschema.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ json โ€บ json_schema.htm
JSON - Schema
{ "$schema": "http://json-schema.org/draft-04/schema#", "title": "Product", "description": "A product from Acme's catalog", "type": "object", "properties": { "id": { "description": "The unique identifier for a product", "type": "integer" }, "name": { "description": "Name of the product", "type": "string" }, "price": { "type": "number", "minimum": 0, "exclusiveMinimum": true } }, "required": ["id", "name", "price"] }