Eazyapi
  • Open API Guide
    • What Is Open API
    • Basic Structure
    • API Server and Base Path
    • Media Types
    • Paths and Operations
    • Describing Parameters
    • Parameter Serialization
    • Describing Request Body
      • File Upload
      • Multipart Requests
    • Describing Responses
    • Data Models (Schemas)
      • Data Types
      • Enums
      • Dictionaries, Hasmaps, Associative Arrays
      • oneOf, anyOf, allOf, not
      • Inheritance And Polymorphism
      • Representating XML
      • Supported JSON Schema Keywords
    • Adding Examples
    • Authentication
      • Basic Authentication
      • API Keys
      • Bearer Authentication
      • OAuth 2.0
      • OpenID Connect Discovery
      • Cookie Authentication
    • Links
    • Callbacks
    • Component Section
    • Using $ref
    • API General Info
    • Grouping Operations With Tags
    • OpenAPI Extensions
    • 2.0
      • Basic Structure
      • API Host and Base Path
      • MIME Types
      • Paths and Operations
      • Describing Parameters
      • Describing Request Body
      • File Upload
      • Describing Responses
      • Authentication
        • API Keys
        • Basic Authentication
      • Adding Examples
      • Enums
      • Grouping Operations With Tags
      • Swagger Extensions
Powered by GitBook
On this page
  1. Open API Guide

Data Models (Schemas)

OpenAPI 3.0 data types are based on an extended subset JSON Schema Specification Wright Draft 00 (aka Draft 5). The data types are described using a Schema object. To learn how to model various data types, see the following topics:

  • Data Types

  • Enums

  • Dictionaries, Hashmaps, Associative Arrays

  • oneOf, anyOf, allOf, not

  • Inheritance and Polymorphism

  • Representing XML

  • Supported JSON Schema Keywords

PreviousDescribing ResponsesNextData Types

Last updated 2 years ago