This repository has been archived by the owner on Sep 6, 2019. It is now read-only.
forked from stoplightio/api-spec-converter
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converts to x-raml-type on raml08 importer
- Loading branch information
Tomas Mateus
committed
Feb 7, 2017
1 parent
a4c982c
commit 8c90082
Showing
3 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#%RAML 0.8 | ||
title: Box | ||
version: 2.0 | ||
baseUri: https://api.box.com/{version}/ | ||
mediaType: application/json | ||
schemas: | ||
- NewTask: | | ||
{ | ||
"$schema": "http://json-schema.org/draft-03/schema", | ||
"type": "object", | ||
"properties": { | ||
"action": { | ||
"description": "The action the task assignee will be prompted to do. Must be 'review'.", | ||
"type": [ "review" ] | ||
}, | ||
"due_at": { | ||
"description": "The day at which this task is due.", | ||
"type": "timestamp" | ||
} | ||
}, | ||
"required": [ "action" ] | ||
} | ||
documentation: | ||
- title: Headline | ||
content: The Box Content API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"definitions": { | ||
"NewTask": { | ||
"properties": { | ||
"action": { | ||
"description": "The action the task assignee will be prompted to do. Must be 'review'.", | ||
"x-raml-type": "review" | ||
}, | ||
"due_at": { | ||
"description": "The day at which this task is due.", | ||
"x-raml-type": "timestamp" | ||
} | ||
}, | ||
"required": [ | ||
"action" | ||
], | ||
"type": "object" | ||
} | ||
}, | ||
"host": "api.box.com", | ||
"info": { | ||
"description": "The Box Content API", | ||
"title": "Box", | ||
"version": "2.0" | ||
}, | ||
"paths": {}, | ||
"produces": [ | ||
"application/json" | ||
], | ||
"schemes": [ | ||
"https" | ||
], | ||
"swagger": "2.0", | ||
"x-basePath": "/{version}/" | ||
} |