INNER CODE UNIT · JavaScript

listPath

Arenukvern/mcp_flutter · showcase/flutter_test_app/web/intentcall_webmcp.generated.js:113

          listPath = listPath.slice(1, -1);
        }
        return validateArrayItems(listPath, schema, value);
      default:
        return null;
    }
  }

  function validateObjectProperties(pathPrefix, schema, args) {
    args = args && typeof args === 'object' && !Array.isArray(args) ? args : {};
    var properties = schema.properties || {};
    if (schema.additionalProperties === false) {
      for (var key in args) {
        if (Object.prototype.hasOwnProperty.call(args, key) &&
            !Object.prototype.hasOwnProperty.call(properties, key)) {
          var at = pathPrefix ? ' at "' + pathPrefix + '"' : '';
          return validationError('Unknown property "' + key + '"' + at + '.');
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…