-
Notifications
You must be signed in to change notification settings - Fork 237
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
Showing
11 changed files
with
108,797 additions
and
103,947 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
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,10 @@ | ||
{ | ||
"error": true, | ||
"description": "The parameter date is required", | ||
"code": 112, | ||
"location": { | ||
"parameter": "date", | ||
"providedValue": "10/24/2019", | ||
"expectedValue": "2019-10-24" | ||
} | ||
} |
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,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> |
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,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" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
<?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> |
Oops, something went wrong.