Skip to content

Instantly share code, notes, and snippets.

@thehappybug
Created November 1, 2023 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thehappybug/36549ca6d69e1cc796aed1754d0c8365 to your computer and use it in GitHub Desktop.
Save thehappybug/36549ca6d69e1cc796aed1754d0c8365 to your computer and use it in GitHub Desktop.
Using Optional and Nullable Properties: Example 3
Profile:
title: Profile
required:
- middle_name
- rider-id
type: object
properties:
first_name:
type: string
description: First name of the Uber user.
last_name:
type: string
description: Last name of the Uber user.
middle_name:
type: string
nullable: 'true'
description: Last name of the Uber user.
email:
type: string
description: Email address of the Uber user
mobile_verified:
type: boolean
description: Mobile verification of Uber user
rider-id:
type: string
description: Rider id of the Uber user
picture:
type: string
description: Image URL of the Uber user.
promo_code:
type: string
nullable: 'true'
description: Promo code of the Uber user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment