changes in Initialse method as adding AddResource function
This commit is contained in:
@@ -22,8 +22,25 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"message": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"order_id": {
|
||||
"$ref": "definitions.json#/$defs/Order"
|
||||
},
|
||||
"cancellation_reason_id": {
|
||||
"$ref": "definitions.json#/$defs/Option"
|
||||
},
|
||||
"descriptor": {
|
||||
"$ref": "definitions.json#/$defs/Descriptor"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"order_id"
|
||||
]
|
||||
}
|
||||
|
||||
},
|
||||
"required": [
|
||||
"message",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/confirm",
|
||||
"$id": "confirm",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/init",
|
||||
"$id": "init",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/OnCancel",
|
||||
"$id": "OnCancel",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/OnConfirm",
|
||||
"$id": "OnConfirm",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/OnInit",
|
||||
"$id": "OnInit",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/OnRating",
|
||||
"$id": "OnRating",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/OnSearch",
|
||||
"$id": "OnSearch",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/OnSelect",
|
||||
"$id": "OnSelect",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/OnStatus",
|
||||
"$id": "OnStatus",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/OnSupport",
|
||||
"$id": "OnSupport",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/OnTrack",
|
||||
"$id": "OnTrack",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/OnUpdate",
|
||||
"$id": "OnUpdate",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/rating",
|
||||
"$id": "rating",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/Response",
|
||||
"$id": "Response",
|
||||
"type": "object",
|
||||
"properties": {},
|
||||
"required": []
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/status",
|
||||
"$id": "status",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/support",
|
||||
"$id": "support",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/track",
|
||||
"$id": "track",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/update",
|
||||
"$id": "update",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_cancel",
|
||||
"$id": "on_cancel",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_confirm",
|
||||
"$id": "on_confirm",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_init",
|
||||
"$id": "on_init",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_rating",
|
||||
"$id": "on_rating",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_search",
|
||||
"$id": "on_search",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_select",
|
||||
"$id": "on_select",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_status",
|
||||
"$id": "on_status",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_support",
|
||||
"$id": "on_support",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_track",
|
||||
"$id": "on_track",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/on_update",
|
||||
"$id": "on_update",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/search",
|
||||
"$id": "search",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://beckn.org/schema/select",
|
||||
"$id": "select",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"context": {
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/cancel",
|
||||
"$id": "cancel",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/cancel.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/cancel#"
|
||||
"$ref": "../../core/v1.1.0/cancel.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "./init.json#/allOf/2"
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/confirm",
|
||||
"$id": "confirm",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/confirm.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/confirm#"
|
||||
"$ref": "../../core/v1.1.0/confirm.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "./init.json#/allOf/2"
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/init",
|
||||
"$id": "init",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{ "$ref": "../core/v1.1.0/init.json#" },
|
||||
{ "$ref": "https://beckn.org/schema/init#" },
|
||||
{ "$ref": "../../core/v1.1.0/init.json#" },
|
||||
{
|
||||
"allOf": [
|
||||
{ "$ref": "./search.json#/properties/context/allOf/0" },
|
||||
@@ -43,7 +42,7 @@
|
||||
}
|
||||
},
|
||||
{ "$ref": "./confirm.json#/allOf/4" },
|
||||
{ "$ref": "./on_select.json#/allOf/10" },
|
||||
{ "$ref": "./on_select.json#" },
|
||||
{
|
||||
"properties": {
|
||||
"message": {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/confirm.json#"
|
||||
"$ref": "../../core/v1.1.0/confirm.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/confirm#"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/confirm.json#"
|
||||
"$ref": "../../core/v1.1.0/confirm.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/confirm#"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/on_init",
|
||||
"$id": "on_init",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/on_init.json#"
|
||||
"$ref": "../../core/v1.1.0/on_init.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/on_init#"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/on_rating",
|
||||
"$id": "on_rating",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/confirm.json#"
|
||||
"$ref": "../../core/v1.1.0/confirm.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/confirm#"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/on_search",
|
||||
"$id": "on_search",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/on_search.json#"
|
||||
"$ref": "../../core/v1.1.0/on_search.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/on_search#"
|
||||
|
||||
@@ -1,23 +1,14 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/on_select",
|
||||
"$id": "on_select",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/on_select.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/on_select#"
|
||||
"$ref": "../../core/v1.1.0/on_select.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "./init.json#/allOf/2"
|
||||
},
|
||||
{
|
||||
"$ref": "#/paths/~1on_init/post/requestBody/content/application~1json/schema/allOf/1/allOf/2"
|
||||
},
|
||||
{
|
||||
"$ref": "#/paths/~1on_init/post/requestBody/content/application~1json/schema/allOf/1/allOf/4"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"message": {
|
||||
@@ -793,9 +784,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$ref": "#/paths/~1on_init/post/requestBody/content/application~1json/schema/allOf/1/allOf/6"
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"message": {
|
||||
@@ -819,9 +807,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"$ref": "#/paths/~1on_init/post/requestBody/content/application~1json/schema/allOf/1/allOf/7"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/on_status",
|
||||
"$id": "on_status",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/confirm.json#"
|
||||
"$ref": "../../core/v1.1.0/confirm.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/confirm#"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/on_support",
|
||||
"$id": "on_support",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/confirm.json#"
|
||||
"$ref": "../../core/v1.1.0/confirm.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/confirm#"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/on_track",
|
||||
"$id": "on_track",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/confirm.json#"
|
||||
"$ref": "../../core/v1.1.0/confirm.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/confirm#"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/rating",
|
||||
"$id": "rating",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/rating.json#"
|
||||
"$ref": "../../core/v1.1.0/rating.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/rating#"
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/search",
|
||||
"$id": "search",
|
||||
"allOf": [
|
||||
{ "$ref": "../core/v1.1.0/search.json#" },
|
||||
{ "$ref": "https://beckn.org/schema/search#" }
|
||||
{ "$ref": "../core/v1.1.0/search.json#" }
|
||||
],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -40,11 +39,11 @@
|
||||
},
|
||||
"bap_id": {
|
||||
"type": "string",
|
||||
"pattern": "^(?!https?://).*$"
|
||||
"pattern": "^(http|https).*"
|
||||
},
|
||||
"bpp_id": {
|
||||
"type": "string",
|
||||
"pattern": "^(?!https?://).*$"
|
||||
"pattern": "^(http|https).*"
|
||||
},
|
||||
"ttl": {
|
||||
"type": "string",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/select",
|
||||
"$id": "select",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{ "$ref": "../core/v1.1.0/select.json#" },
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/status",
|
||||
"$id": "status",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/status.json#"
|
||||
"$ref": "../../core/v1.1.0/status.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/status#"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/support",
|
||||
"$id": "support",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/support.json#"
|
||||
"$ref": "../../core/v1.1.0/support.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/support#"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/track",
|
||||
"$id": "track",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/track.json#"
|
||||
"$ref": "../../core/v1.1.0/track.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/track#"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://ondc.org/trv10/2.0.0/update",
|
||||
"$id": "update",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "../core/v1.1.0/update.json#"
|
||||
"$ref": "../../core/v1.1.0/update.json#"
|
||||
},
|
||||
{
|
||||
"$ref": "https://beckn.org/schema/update#"
|
||||
|
||||
Reference in New Issue
Block a user