Skip to content

Instantly share code, notes, and snippets.

@noudin-ledger
Last active March 15, 2024 10:43
Show Gist options
  • Save noudin-ledger/66d6d2bac60e43fd467f25287d436e89 to your computer and use it in GitHub Desktop.
Save noudin-ledger/66d6d2bac60e43fd467f25287d436e89 to your computer and use it in GitHub Desktop.
API Spec Example failing to validate with bump
openapi: 3.0.2
info:
title: Example
version: 0.0.0
x-logo:
url: https://example.com
description: a description
paths:
/schema/{schema_id}:
get:
summary: Get an schema by ID
tags:
- Schemaq
description: This method returns the schema by id
parameters:
- name: schema_id
in: path
description: The schema's ID
required: true
schema:
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/SchemaEntry'
description: Schema object
components:
schemas:
SchemaEntry:
properties:
all1:
allOf:
- $ref: '#/components/schemas/AllOf1'
description: First All Of
all2:
allOf:
- $ref: '#/components/schemas/AllOf1'
description: Second All Of
required:
- all1
- all2
type: object
AllOf1:
properties:
final_entry:
default: null
description: all of 1
nullable: true
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment