From df73996935069d584fb6b8cde5cb959c3d7c18f6 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Fri, 15 Mar 2024 11:13:24 -0700 Subject: [PATCH] fix: validation issues with the train-travel example --- 3.1/json/train-travel.json | 13 ++----------- 3.1/yaml/train-travel.yaml | 7 +------ 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/3.1/json/train-travel.json b/3.1/json/train-travel.json index 28dd626..349e6a2 100644 --- a/3.1/json/train-travel.json +++ b/3.1/json/train-travel.json @@ -2,7 +2,7 @@ "openapi": "3.1.0", "info": { "title": "Train Travel API", - "description": "API for finding and booking train trips across Europe.", + "description": "API for finding and booking train trips across Europe.\n\nThis API definition was ported over from https://github.com/bump-sh-examples/train-travel-api.", "version": "1.0.0", "contact": { "name": "Train Support", @@ -11,18 +11,9 @@ }, "license": { "name": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International", - "identifier": "CC-BY-NC-SA-4.0", - "url": "https://github.com/bump-sh-examples/train-travel-api/blob/main/LICENSE_CC-BY-NC-SA-4.0" + "identifier": "CC-BY-NC-SA-4.0" } }, - "x-topics": [ - { - "title": "Getting started", - "content": { - "$ref": "./docs/getting-started.md" - } - } - ], "servers": [ { "url": "https://api.example.com", diff --git a/3.1/yaml/train-travel.yaml b/3.1/yaml/train-travel.yaml index b37cc93..365862d 100644 --- a/3.1/yaml/train-travel.yaml +++ b/3.1/yaml/train-travel.yaml @@ -1,7 +1,7 @@ openapi: 3.1.0 info: title: Train Travel API - description: API for finding and booking train trips across Europe. + description: API for finding and booking train trips across Europe.\n\nThis API definition was ported over from https://github.com/bump-sh-examples/train-travel-api. version: 1.0.0 contact: name: Train Support @@ -10,12 +10,7 @@ info: license: name: Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International identifier: CC-BY-NC-SA-4.0 - url: https://github.com/bump-sh-examples/train-travel-api/blob/main/LICENSE_CC-BY-NC-SA-4.0 -x-topics: - - title: Getting started - content: - $ref: ./docs/getting-started.md servers: - url: https://api.example.com description: Production