@semiont/core 0.5.33 → 0.5.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.js CHANGED
@@ -18020,6 +18020,7 @@ var require_openapi_validators = __commonJS({
18020
18020
  }
18021
18021
  exports.CollaboratorEntry = validate80;
18022
18022
  exports.CommandError = validate154;
18023
+ var schema126 = { "properties": { "code": { "enum": ["peer-unavailable"]}}};
18023
18024
  function validate154(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
18024
18025
  let vErrors = null;
18025
18026
  let errors = 0;
@@ -18061,8 +18062,8 @@ var require_openapi_validators = __commonJS({
18061
18062
  }
18062
18063
  }
18063
18064
  }
18064
- if (data.message !== void 0) {
18065
- let data1 = data.message;
18065
+ if (data.code !== void 0) {
18066
+ let data1 = data.code;
18066
18067
  if (typeof data1 !== "string") {
18067
18068
  let dataType1 = typeof data1;
18068
18069
  let coerced1 = void 0;
@@ -18072,7 +18073,7 @@ var require_openapi_validators = __commonJS({
18072
18073
  } else if (data1 === null) {
18073
18074
  coerced1 = "";
18074
18075
  } else {
18075
- const err2 = { instancePath: instancePath + "/message", schemaPath: "#/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18076
+ const err2 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18076
18077
  if (vErrors === null) {
18077
18078
  vErrors = [err2];
18078
18079
  } else {
@@ -18084,13 +18085,22 @@ var require_openapi_validators = __commonJS({
18084
18085
  if (coerced1 !== void 0) {
18085
18086
  data1 = coerced1;
18086
18087
  if (data !== void 0) {
18087
- data["message"] = coerced1;
18088
+ data["code"] = coerced1;
18088
18089
  }
18089
18090
  }
18090
18091
  }
18092
+ if (!(data1 === "peer-unavailable")) {
18093
+ const err3 = { instancePath: instancePath + "/code", schemaPath: "#/properties/code/enum", keyword: "enum", params: { allowedValues: schema126.properties.code.enum }, message: "must be equal to one of the allowed values" };
18094
+ if (vErrors === null) {
18095
+ vErrors = [err3];
18096
+ } else {
18097
+ vErrors.push(err3);
18098
+ }
18099
+ errors++;
18100
+ }
18091
18101
  }
18092
- if (data.details !== void 0) {
18093
- let data2 = data.details;
18102
+ if (data.message !== void 0) {
18103
+ let data2 = data.message;
18094
18104
  if (typeof data2 !== "string") {
18095
18105
  let dataType2 = typeof data2;
18096
18106
  let coerced2 = void 0;
@@ -18100,11 +18110,11 @@ var require_openapi_validators = __commonJS({
18100
18110
  } else if (data2 === null) {
18101
18111
  coerced2 = "";
18102
18112
  } else {
18103
- const err3 = { instancePath: instancePath + "/details", schemaPath: "#/properties/details/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18113
+ const err4 = { instancePath: instancePath + "/message", schemaPath: "#/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18104
18114
  if (vErrors === null) {
18105
- vErrors = [err3];
18115
+ vErrors = [err4];
18106
18116
  } else {
18107
- vErrors.push(err3);
18117
+ vErrors.push(err4);
18108
18118
  }
18109
18119
  errors++;
18110
18120
  }
@@ -18112,17 +18122,45 @@ var require_openapi_validators = __commonJS({
18112
18122
  if (coerced2 !== void 0) {
18113
18123
  data2 = coerced2;
18114
18124
  if (data !== void 0) {
18115
- data["details"] = coerced2;
18125
+ data["message"] = coerced2;
18126
+ }
18127
+ }
18128
+ }
18129
+ }
18130
+ if (data.details !== void 0) {
18131
+ let data3 = data.details;
18132
+ if (typeof data3 !== "string") {
18133
+ let dataType3 = typeof data3;
18134
+ let coerced3 = void 0;
18135
+ if (!(coerced3 !== void 0)) {
18136
+ if (dataType3 == "number" || dataType3 == "boolean") {
18137
+ coerced3 = "" + data3;
18138
+ } else if (data3 === null) {
18139
+ coerced3 = "";
18140
+ } else {
18141
+ const err5 = { instancePath: instancePath + "/details", schemaPath: "#/properties/details/type", keyword: "type", params: { type: "string" }, message: "must be string" };
18142
+ if (vErrors === null) {
18143
+ vErrors = [err5];
18144
+ } else {
18145
+ vErrors.push(err5);
18146
+ }
18147
+ errors++;
18148
+ }
18149
+ }
18150
+ if (coerced3 !== void 0) {
18151
+ data3 = coerced3;
18152
+ if (data !== void 0) {
18153
+ data["details"] = coerced3;
18116
18154
  }
18117
18155
  }
18118
18156
  }
18119
18157
  }
18120
18158
  } else {
18121
- const err4 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
18159
+ const err6 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
18122
18160
  if (vErrors === null) {
18123
- vErrors = [err4];
18161
+ vErrors = [err6];
18124
18162
  } else {
18125
- vErrors.push(err4);
18163
+ vErrors.push(err6);
18126
18164
  }
18127
18165
  errors++;
18128
18166
  }