Skip to content

Mview.xsd and indexer Classes dont allow table names / classes with numbers #30582

Open
@samc2810

Description

@samc2810

<xs:simpleType name="tableNameType">

Using Magento 2.4 Commerce

Hi Magento Team
I am working on a module where I created a new indexer but the XSDs wont allow Numbers in the Class name or table names. Looks like I need to re-write my module :(

Element 'indexer', attribute 'class': [facet 'pattern'] The value 'Vendpt\B2BPricing\Model\Indexer\Pricing' is not accepted by the pattern '[a-zA-Z\]+'.
Line: 3

Element 'indexer', attribute 'class': 'Vendor\B2BPricing\Model\Indexer\Pricing' is not a valid value of the atomic type 'classType'

and mview

The XML in file "/var/www/html/magento/app/code/Vendor/B2BPricing/etc/mview.xml" is invalid:
Element 'table', attribute 'name': [facet 'pattern'] The value 'vend_b2b_company_tier_prices' is not accepted by the pattern '[a-z_]+'.
Line: 5

Element 'table', attribute 'name': 'vend_b2b_company_tier_prices' is not a valid value of the atomic type 'tableNameType'.
Line: 5

Element 'table', attribute 'name': Warning: No precomputed value available, the value was either invalid or something strange happend.
Line: 5

Element 'table', attribute 'name': [facet 'pattern'] The value 'vend_b2b_company_price_rules' is not accepted by the pattern '[a-z_]+'.
Line: 6

Element 'table', attribute 'name': 'vend_b2b_company_price_rules' is not a valid value of the atomic type 'tableNameType'.
Line: 6

Element 'table', attribute 'name': Warning: No precomputed value available, the value was either invalid or something strange happend.
Line: 6

Verify the XML and try again.

Any chances this will be fixed with 2.4.1?

Thanks and cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: PricingComponent: PricingIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: ready for devReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.2Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions