Skip to content
This repository was archived by the owner on Jan 5, 2019. It is now read-only.

Commit 5ff649e

Browse files
committed
Add TODO.md, LICENSE, CHANGELOG.md and version.json files
1 parent c74d8e3 commit 5ff649e

File tree

4 files changed

+78
-0
lines changed

4 files changed

+78
-0
lines changed

CHANGELOG.md

Whitespace-only changes.

MIT-LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2013 Abd ar-Rahman Hamidi
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

TODO.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
* Migrate from the dirty current schemas to [standard JSON schema](http://json-schema.org)
2+
by following [draft-04 specification](http://json-schema.org/draft-04/schema).
3+
4+
* Improve the current json-documents schemas by adding additional
5+
(`description`, `default`, `minItems`, `minimum`, `uniqueItems`, `required`, `items` and `enum`) properties.
6+
For more information about this properties refer to the [link](http://json-schema.org/documentation.html).
7+
8+
e.g.
9+
```json
10+
{
11+
"$schema": "http://json-schema.org/draft-04/schema#",
12+
"title": "Product",
13+
"description": "A product from Acme's catalog",
14+
"type": "object",
15+
"properties": {
16+
"id": {
17+
"description": "The unique identifier for a product",
18+
"type": "integer"
19+
},
20+
"name": {
21+
"description": "Name of the product",
22+
"type": "string"
23+
},
24+
"price": {
25+
"type": "number",
26+
"minimum": 0,
27+
"exclusiveMinimum": true
28+
},
29+
"tags": {
30+
"type": "array",
31+
"items": {
32+
"type": "string"
33+
},
34+
"minItems": 1,
35+
"uniqueItems": true
36+
}
37+
},
38+
"required": ["id", "name", "price"]
39+
}
40+
```
41+
42+
* Add `ad` document's property for a negotiable, free, paid, etc ad's type.
43+
44+
* Add `placement_period` property to `ad` document for holding time period.
45+
e.g. a day, a week, 2 weeks, a month, 2 months, ...
46+
47+
* Add sample data with utility test validation for the schemas.
48+
For more information about the utility refer to the [link](http://json-schema.org/implementations.html)

version.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"version": {
3+
"major": 0,
4+
"minor": 1,
5+
"tiny": 0,
6+
"pre": "alpha"
7+
}
8+
}

0 commit comments

Comments
 (0)