changes in Initialse method as adding AddResource function

This commit is contained in:
AshwiniK-protean
2025-02-28 18:02:20 +05:30
parent 26c97c5774
commit 4b940d9e51
57 changed files with 2516 additions and 2993 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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": {

View File

@@ -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#"

View File

@@ -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#"

View File

@@ -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#"

View File

@@ -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#"

View File

@@ -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#"

View File

@@ -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"
}
]
}

View File

@@ -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#"

View File

@@ -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#"

View File

@@ -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#"

View File

@@ -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#"

View File

@@ -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",

View File

@@ -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#" },

View File

@@ -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#"

View File

@@ -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#"

View File

@@ -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#"

View File

@@ -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#"