Skip to content

Instantly share code, notes, and snippets.

@briandominick
Created November 7, 2023 02:03
Show Gist options
  • Select an option

  • Save briandominick/bab9b282dc830207938a22756c2561d0 to your computer and use it in GitHub Desktop.

Select an option

Save briandominick/bab9b282dc830207938a22756c2561d0 to your computer and use it in GitHub Desktop.

Revisions

  1. briandominick created this gist Nov 7, 2023.
    52 changes: 52 additions & 0 deletions AltPet.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    {
    "Pet": {
    "type": "object",
    "required": [
    "name",
    "photoUrls"
    ],
    "properties": {
    "id": {
    "type": "integer",
    "format": "int64"
    },
    "name": {
    "type": "string",
    "example": "doggie"
    },
    "photoUrls": {
    "type": "array",
    "items": {
    "type": "string"
    }
    },
    "tags": {
    "type": "array",
    "items": {
    "type": "object",
    "properties": {
    "id": {
    "type": "integer",
    "format": "int64"
    },
    "name": {
    "type": "string"
    }
    },
    "xml": {
    "name": "tag"
    }
    }
    },
    "status": {
    "type": "string",
    "description": "pet status in the store",
    "enum": [
    "available",
    "pending",
    "sold"
    ]
    }
    }
    }
    }