update
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Владимир Фёдоров 2024-05-22 04:13:01 +07:00
parent 1ea3b427bd
commit 5b7744080c
2 changed files with 24 additions and 16 deletions

View File

@ -7,7 +7,7 @@ generate:
--go_out ./proto --go_opt paths=source_relative \ --go_out ./proto --go_opt paths=source_relative \
--go-grpc_out ./proto --go-grpc_opt paths=source_relative \ --go-grpc_out ./proto --go-grpc_opt paths=source_relative \
--grpc-gateway_out ./proto --grpc-gateway_opt paths=source_relative \ --grpc-gateway_out ./proto --grpc-gateway_opt paths=source_relative \
--swagger_out=allow_merge=true,merge_file_name=main:./resources \ --openapiv2_out=./resources \
./api/main.proto ./api/main.proto
run: run:

View File

@ -4,6 +4,11 @@
"title": "main.proto", "title": "main.proto",
"version": "version not set" "version": "version not set"
}, },
"tags": [
{
"name": "CRM"
}
],
"consumes": [ "consumes": [
"application/json" "application/json"
], ],
@ -24,7 +29,7 @@
"default": { "default": {
"description": "An unexpected error response.", "description": "An unexpected error response.",
"schema": { "schema": {
"$ref": "#/definitions/runtimeError" "$ref": "#/definitions/rpcStatus"
} }
} }
}, },
@ -55,7 +60,7 @@
"default": { "default": {
"description": "An unexpected error response.", "description": "An unexpected error response.",
"schema": { "schema": {
"$ref": "#/definitions/runtimeError" "$ref": "#/definitions/rpcStatus"
} }
} }
}, },
@ -77,7 +82,7 @@
"default": { "default": {
"description": "An unexpected error response.", "description": "An unexpected error response.",
"schema": { "schema": {
"$ref": "#/definitions/runtimeError" "$ref": "#/definitions/rpcStatus"
} }
} }
}, },
@ -108,7 +113,7 @@
"default": { "default": {
"description": "An unexpected error response.", "description": "An unexpected error response.",
"schema": { "schema": {
"$ref": "#/definitions/runtimeError" "$ref": "#/definitions/rpcStatus"
} }
} }
}, },
@ -134,6 +139,7 @@
"categories": { "categories": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/definitions/crmCategory" "$ref": "#/definitions/crmCategory"
} }
} }
@ -145,6 +151,7 @@
"categories": { "categories": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/definitions/crmCategory" "$ref": "#/definitions/crmCategory"
} }
} }
@ -166,6 +173,7 @@
"children": { "children": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/definitions/crmCategory" "$ref": "#/definitions/crmCategory"
} }
} }
@ -202,6 +210,7 @@
"products": { "products": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/definitions/crmProduct" "$ref": "#/definitions/crmProduct"
} }
} }
@ -232,9 +241,10 @@
"description": { "description": {
"type": "string" "type": "string"
}, },
"grouped_products": { "groupedProducts": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/definitions/crmGroupedProduct" "$ref": "#/definitions/crmGroupedProduct"
} }
}, },
@ -248,12 +258,14 @@
"variants": { "variants": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/definitions/crmVariant" "$ref": "#/definitions/crmVariant"
} }
}, },
"characteristics": { "characteristics": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/definitions/crmCharacteristic" "$ref": "#/definitions/crmCharacteristic"
} }
}, },
@ -292,6 +304,7 @@
"properties": { "properties": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/definitions/crmProperty" "$ref": "#/definitions/crmProperty"
} }
} }
@ -300,21 +313,15 @@
"protobufAny": { "protobufAny": {
"type": "object", "type": "object",
"properties": { "properties": {
"type_url": { "@type": {
"type": "string" "type": "string"
},
"value": {
"type": "string",
"format": "byte"
} }
} },
"additionalProperties": {}
}, },
"runtimeError": { "rpcStatus": {
"type": "object", "type": "object",
"properties": { "properties": {
"error": {
"type": "string"
},
"code": { "code": {
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
@ -325,6 +332,7 @@
"details": { "details": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "#/definitions/protobufAny" "$ref": "#/definitions/protobufAny"
} }
} }