Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravi Prakash committed Apr 19, 2020
0 parents commit fb8f66b
Show file tree
Hide file tree
Showing 218 changed files with 2,614 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
9 changes: 9 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ravi Prakash
* __Email__ : [email protected]
* __Designation__ : Principal Architect
* __Organization__ : Open Shared Mobility Foundation

# Pramod Varma
* __Email__ : [email protected]
* __Designation__ : CTO
* __Organization__ : EkStep Foundation
Empty file added GOVERNANCE.md
Empty file.
157 changes: 157 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ravi Prakash
* __Email__ : [email protected]
* __Designation__ : Principal Architect
* __Organization__ : Open Shared Mobility Foundation

# Pramod Varma
* __Email__ : [email protected]
* __Designation__ : CTO
* __Organization__ : EkStep Foundation
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# beckn-protocol-specifications
Empty file added TOB.md
Empty file.
35 changes: 35 additions & 0 deletions core/schema/0.7.1/ack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"$id": "https://developers.beckn.org/core/schema/0.7.1/ack.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"version" : "0.7.1",
"description": "Describes the ACK response",
"type": "object",
"properties": {
"header" : {
"$ref" : "https://developers.beckn.org/core/schema/0.7.1/header.json"
},
"body" : {
"message" : {

},
"code" : {

},
"error" : {
"type" : "array",
"items" : {
"type" : "object",
"properties" : {
"path" : {
"type" : "string"
},
"error_msg" : {
"type" : "string"
}
}
}

}
}
}
}
16 changes: 16 additions & 0 deletions core/schema/0.7.1/api.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$id": "https://developers.beckn.org/core/schema/0.7.1/api.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"version" : "0.7.1",
"description": "Describes contact info of a Person or Organization",
"type": "object",
"properties": {
"url" : {
"type" : "string"
},
"exp" : {
"type" : "string",
"format" : "date-time"
}
}
}
8 changes: 8 additions & 0 deletions core/schema/0.7.1/domain.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$id": "https://developers.beckn.org/core/schema/0.7.1/domain.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"version" : "0.7.1",
"description": "Describes the domain of an object",
"type": "string",
"enum" : ["MOBILITY", "FINAL-MILE-DELIVERY", "FOOD-ORDERING"]
}
22 changes: 22 additions & 0 deletions core/schema/0.7.1/header.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$id": "https://developers.beckn.org/core/schema/0.7.1/header.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"version" : "0.7.1",
"description": "Describes the beckn message packet header",
"type": "object",
"properties": {
"action" : {
"type" : "string"
},
"version" : {
"type" : "string"
},
"transaction_id" : {
"type" : "string"
},
"timestamp" : {
"type" : "string",
"format" : "date-time"
}
}
}
20 changes: 20 additions & 0 deletions core/schema/0.7.1/image.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$id": "https://developers.beckn.org/core/schema/0.7.1/image.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"version" : "0.7.1",
"description": "Image of an object",
"type": "object",
"properties": {
"type" : {
"type" : "string",
"enum" : ["url", "data"]
},
"url" : {
"type" : "string",
"format" : "date-time"
},
"data" : {
"type" : "string"
}
}
}
43 changes: 43 additions & 0 deletions core/schema/0.7.1/item.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$id": "https://developers.beckn.org/core/schema/0.7.1/item.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"version" : "0.7.1",
"description": "Describes a catalog item",
"type": "object",
"properties": {
"id" : {
"type" : "string"
},
"name" : {
"type" : "string"
},
"description" : {
"type" : "string"
},
"image" : {
"$ref" : "https://developers.beckn.org/core/schema/0.7.1/image.json"
},
"price" : {
"$ref" : "https://developers.beckn.org/core/schema/0.7.1/price.json"
},
"tags" : {
"type" : "array",
"items" : {
"type" : "string"
}
},
"primary" : {
"type" : "boolean"
},
"selected" : {
"type" : "boolean"
},
"quantity" : {
"type" : "integer",
"minimum": 0
},
"policy" : {
"$ref" : "https://developers.beckn.org/core/schema/0.7.1/policy.json"
}
}
}
78 changes: 78 additions & 0 deletions core/schema/0.7.1/location.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"$id": "https://developers.beckn.org/core/schema/0.7.1/location.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"version" : "0.7.1",
"description": "Describes the location of an object or a service",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["gps", "address", "station_code", "area_code", "city", "country", "polygon", "3dspace"]
},
"gps": {
"type": "object",
"properties" : {
"lat" : {
"type" : "string"
},
"lon" : {
"type" : "string"
}
},
"required" : ["lat", "lon"]
},
"address": {
"type": "object",
"properties" : {
"door" : {
"type" : "string"
},
"building" : {
"type" : "string"
},
"street" : {
"type" : "string"
},
"area" : {
"type" : "string"
},
"city" : {
"type" : "string"
},
"country" : {
"type" : "string"
},
"area_code" : {
"type" : "string"
}
}
},
"station_code": {
"type": "string"
},
"area_code": {
"type": "string"
},
"city": {
"type": "object",
"properties" : {
"name" : {"type" : "string"},
"code" : {"type" : "string"}
}
},
"country": {
"type": "object",
"properties" : {
"name" : {"type" : "string"},
"code" : {"type" : "string"}
}
},
"polygon" : {
"type" : "string"
},
"3dspace" : {
"type" : "string"
}
},
"required": [ "type" ]
}
25 changes: 25 additions & 0 deletions core/schema/0.7.1/operator.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$id": "https://developers.beckn.org/mobility/schema/0.7.1/operator.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"version" : "0.7.1",
"description": "Describes the operator of a service",
"type": "object",
"properties" : {
"descriptor" : {
"$ref" : "https://developers.beckn.org/core/schema/0.7.1/person.json"
},
"experience" : {
"label" : {
"type" : "string"
},
"value" : {
"type" : "string"
},
"unit" : {
"type" : "string"
}
}

}

}
88 changes: 88 additions & 0 deletions core/schema/0.7.1/person.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"$id": "https://developers.beckn.org/core/schema/0.7.1/person.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"version" : "0.7.1",
"description": "Describes a person",
"type": "object",
"properties": {
"title": {
"type": "string",
"enum": ["Mr", "Mrs", "Miss", "Dr"]
},
"first_name": {
"type": "string"
},
"middle_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"full_name": {
"type": "string"
},
"image": {
"type": "object",
"properties" : {
"format" : {
"type" : "string",
"enum" : [ "url", "encoded" ]
},
"data" : {
"type" : "string"
}
}
},
"dob": {
"type": "string",
"format" : "date"
},
"gender" : {
"type" : "string",
"enum" : [ "male", "female" ]
},
"contact" : {
"type": "object",
"properties": {
"email" : {
"type" : "string",
"format" : "email"
},
"mobile" : {
"type" : "object",
"properties": {
"country_code" : {
"type" : "string"
},
"number" : {
"type" : "string"
}
}
},
"landline" : {
"type" : "object",
"properties": {
"country_code" : {
"type" : "string"
},
"std_code" : {
"type" : "string"
},
"number" : {
"type" : "string"
},
"extension" : {
"type" : "string"
}
}
},
"ivr" : {
"type" : "array",
"items" : {
"type" : "string"
}
}
}
}
}
}
Loading

0 comments on commit fb8f66b

Please sign in to comment.