Skip to content

Commit

Permalink
fix: validation issues with the train-travel example
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Mar 15, 2024
1 parent ff727f0 commit df73996
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
13 changes: 2 additions & 11 deletions 3.1/json/train-travel.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
7 changes: 1 addition & 6 deletions 3.1/yaml/train-travel.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit df73996

Please sign in to comment.