Skip to content

Commit

Permalink
chore: upgradig dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodek committed Oct 24, 2019
1 parent a5f4bdc commit ced4883
Show file tree
Hide file tree
Showing 11 changed files with 108,797 additions and 103,947 deletions.
32,182 changes: 17,271 additions & 14,911 deletions demo/models/demo-api-compact.json

Large diffs are not rendered by default.

32,182 changes: 17,271 additions & 14,911 deletions demo/models/demo-api.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions demo/models/demo-api/demo-api.raml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,16 @@ documentation:
application/xml:
type: !include schemas/person.xsd
example: !include examples/person.xml
400:
description: |
Client error
body:
application/json:
schema: !include schemas/error.json
example: !include examples/error.json
application/xml:
type: !include schemas/error.xsd
example: !include examples/error.xml
/{personId}:
securedBy: x-custom
type: ResourceNotFound
Expand Down
10 changes: 10 additions & 0 deletions demo/models/demo-api/examples/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"error": true,
"description": "The parameter date is required",
"code": 112,
"location": {
"parameter": "date",
"providedValue": "10/24/2019",
"expectedValue": "2019-10-24"
}
}
10 changes: 10 additions & 0 deletions demo/models/demo-api/examples/error.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<error error="true">
<description>The parameter date is required</description>
<code>112</code>
<location>
<parameter>date</parameter>
<providedValue></providedValue>
<expectedValue>Date as YYYY-MM-DD</expectedValue>
</location>
</resource>
65 changes: 65 additions & 0 deletions demo/models/demo-api/schemas/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"$id": "http://example.com/example.json",
"type": "object",
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"description": {
"$id": "/properties/description",
"type": "string",
"title": "The description schema",
"default": "",
"examples": [
"The parameter date is required"
]
},
"code": {
"$id": "/properties/code",
"type": "number",
"title": "The code schema",
"default": "",
"examples": [
"112"
]
},
"error": {
"$id": "/properties/error",
"type": "boolean",
"title": "The error schema",
"default": true
},
"location": {
"$id": "/properties/location",
"type": "object",
"properties": {
"parameter": {
"$id": "/properties/location/properties/parameter",
"type": "string",
"title": "The location.parameter schema",
"default": "",
"examples": [
"date"
]
},
"providedValue": {
"$id": "/properties/location/properties/providedValue",
"type": "string",
"title": "The location.providedValue schema",
"default": "",
"examples": [
"10/24/2019"
]
},
"expectedValue": {
"$id": "/properties/location/properties/expectedValue",
"type": "string",
"title": "The location.expectedValue schema",
"default": "",
"examples": [
"2019-10-24"
]
}
}
}
}
}
21 changes: 21 additions & 0 deletions demo/models/demo-api/schemas/error.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="error">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string"></xs:element>
<xs:element name="code" type="xs:number"></xs:element>
<xs:element name="location">
<xs:complexType>
<xs:sequence>
<xs:element name="parameter" type="xs:string"></xs:element>
<xs:element name="providedValue" type="xs:string"></xs:element>
<xs:element name="expectedValue" type="xs:string"></xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="error" type="xs:boolean" use="required"></xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
Loading

0 comments on commit ced4883

Please sign in to comment.