Skip to content

Attribute 'setup_version' is missing for module error when defined as optional #1493

@markshust

Description

@markshust

Using the defined module.xml when creating a module:

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
    <module name="Foo_Bar" />
</config>

Leads to this error: Attribute 'setup_version' is missing for module

However as defined by lib/internal/Magento/Framework/Module/etc/module.xsd, this is an optional field:
<xs:attribute name="setup_version" type="setupVersion" use="optional" />

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions