Skip to content

Latest commit

 

History

History
64 lines (39 loc) · 2.45 KB

enums.md

File metadata and controls

64 lines (39 loc) · 2.45 KB

Enumerated Schema

https://example.com/schemas/enums

This is an example schema with examples for properties with enum values

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Allowed none enums.schema.json

Enumerated Type

object (Enumerated )

Enumerated Properties

Property Type Required Nullable Defined by
hello string Required cannot be null Enumerated
nested object Optional cannot be null Enumerated

hello

A simple string. Pick a value.

hello

  • is required
  • Type: string
  • cannot be null
  • defined in: Enumerated

hello Type

string

hello Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"World"
"Welt"

nested

This is an example schema with examples for properties of nested objects with enum values

nested

nested Type

object (Enumerated (Nested))