-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce78737
commit ae7edf3
Showing
11 changed files
with
286 additions
and
180 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
This file was deleted.
Oops, something went wrong.
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,90 @@ | ||
{ | ||
"schemaFormat": "application/raml+yaml;version=1.0", | ||
"payload": | ||
{ | ||
"type": | ||
[ | ||
"CatWithAddress", | ||
"CatWithCity" | ||
], | ||
"minProperties": 1, | ||
"maxProperties": 50, | ||
"additionalProperties": false, | ||
"discriminator": "breed", | ||
"discriminatorValue": "CatOne", | ||
"properties": | ||
{ | ||
"proscons": | ||
{ | ||
"type": "CatPros | CatCons", | ||
"required": true | ||
}, | ||
"name": | ||
{ | ||
"type": "CatName", | ||
"amazing": true | ||
}, | ||
"breed": | ||
{ | ||
"type": "CatBreed" | ||
}, | ||
"age": "CatAge", | ||
"rating": | ||
{ | ||
"type": "integer", | ||
"multipleOf": 5, | ||
"example": | ||
{ | ||
"displayName": "Cat's rating", | ||
"description": "Rating of cat's awesomeness", | ||
"strict": false, | ||
"value": 50 | ||
} | ||
}, | ||
"year_of_birth": "date-only", | ||
"time_of_birth": "time-only", | ||
"dt_of_birth": | ||
{ | ||
"type": "datetime-only", | ||
"required": false | ||
}, | ||
"addition_date": | ||
{ | ||
"type": "datetime", | ||
"format": "rfc2616" | ||
}, | ||
"removal_date": | ||
{ | ||
"type": "datetime" | ||
}, | ||
"photo": | ||
{ | ||
"type": "file", | ||
"fileTypes": | ||
[ | ||
"image/jpeg", | ||
"image/png" | ||
], | ||
"minLength": 1, | ||
"maxLength": 307200 | ||
}, | ||
"description": "nil", | ||
"habits?": "string", | ||
"character": "nil | string", | ||
"siblings": "string[]", | ||
"parents": "CatName[]", | ||
"ratingHistory": "(integer | number)[]", | ||
"additionalData": | ||
{ | ||
"type": | ||
{ | ||
"type": "object", | ||
"properties": | ||
{ | ||
"weight": "number" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,22 @@ | ||
asyncapi: 2.4.0 | ||
info: | ||
title: My API | ||
version: '1.0.0' | ||
|
||
channels: | ||
myChannel: | ||
publish: | ||
message: | ||
$ref: '#/components/messages/testMessage' | ||
|
||
components: | ||
messages: | ||
testMessage: | ||
schemaFormat: application/raml+yaml;version=1.0 | ||
payload: | ||
type: object | ||
properties: | ||
title: string | ||
author: | ||
type: string | ||
examples: test |
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,13 @@ | ||
{ | ||
"schemaFormat": "application/raml+yaml;version=1.0", | ||
"payload": { | ||
"type": "object", | ||
"properties": { | ||
"title": "string", | ||
"author": { | ||
"type": "string", | ||
"examples": "test" | ||
} | ||
} | ||
} | ||
} |
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,21 @@ | ||
{ | ||
"schemaFormat": "application/raml+yaml;version=1.0", | ||
"payload": { | ||
"type": "object", | ||
"properties": { | ||
"title": "string", | ||
"author": { | ||
"type": "string", | ||
"examples": { | ||
"anExample": "Eva" | ||
} | ||
} | ||
}, | ||
"examples": { | ||
"exampleOne": { | ||
"title": "A book", | ||
"author": "An author" | ||
} | ||
} | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.