MCPcopy Create free account
hub / github.com/openai/plugins / validateName

Function validateName

plugins/shopify/skills/shopify-admin/scripts/validate.mjs:6648–6655  ·  view source on GitHub ↗
(context, node)

Source from the content-addressed store, hash-verified

6646 }
6647 }
6648 function validateName(context, node) {
6649 if (node.name.startsWith("__")) {
6650 context.reportError(
6651 `Name "${node.name}" must not begin with "__", which is reserved by GraphQL introspection.`,
6652 node.astNode
6653 );
6654 }
6655 }
6656 function validateTypes(context) {
6657 const validateInputObjectCircularRefs = createInputObjectCircularRefsValidator(context);
6658 const typeMap = context.schema.getTypeMap();

Callers 5

validateDirectivesFunction · 0.70
validateTypesFunction · 0.70
validateFieldsFunction · 0.70
validateEnumValuesFunction · 0.70
validateInputFieldsFunction · 0.70

Calls 1

reportErrorMethod · 0.45

Tested by

no test coverage detected