Skip to content

GraphQL Schema for createCustomer does not match validation requirements #28570

Closed
@magento-engcom-team

Description

@magento-engcom-team

The schema for the createCustomer mutation shows the input object as a whole as required but it does not show the individual required fields. For example, I tried to make an account passing ONLY the email and password but received an error after submission that said first name and last name were required.

https://i.gyazo.com/baffd808d33594f6aa1f9ef785cac540.png

After checking the schema, it does not look like any of the props within the input object are listed as required. Fixing the schema will help catch errors ahead of time and during development of features.

https://i.gyazo.com/47babb76479f71ee87e5e46051c9b42e.png

Metadata

Metadata

Labels

Fixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedPAPPartners acceleration programPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Project: GraphQLReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions